Re: Joining A Domain

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Barney (anonymous_at_discussions.microsoft.com)
Date: 05/06/04


Date: Wed, 5 May 2004 17:12:14 -0700

Sincere thanks Torgeir
>-----Original Message-----
>Barney wrote:
>
>> A computer at a remote site was erroneously setup to
be
>> part of a Workgroup. I would like to join this
computer
>> to a domain /AD. Can I do this from a command prompt
>> (using rcmd)?
>Hi
>
>Netdom.exe should work, more here:
>
>http://groups.google.com/groups?selm=402AFB1E.B2D2F6F4%
40hydro.com
>
>To reboot the computer after the join, add /REBoot to
>the command line of Netdom.exe.
>
>I am not sure if (the latest) Netdom.exe supports remote
>computers or not.
>
>If not:
>
>To run Netdom.exe remotely, take e.g. a look at
PsExec.exe in
>the free PsTools suite, found at
>http://www.sysinternals.com
>
>PsExec can even automatically copy a file (e.g.
Netdom.exe) over
>to the remote computer before it starts it.
>
>
>Another freeware program with similar merits to PsExec
is Beyondexec.
>http://www.beyondlogic.org/consulting/remoteprocess/Beyon
dExec.htm
>
>
>Copying Netdom.exe to the remote computer (using e.g.
the C$ admin
>share) and then launch it using rcmd is maybe also an
option.
>
>
>
>If the computers are running Windows XP or newer, using
>a WMI script is another option:
>
>JoinDomainOrWorkgroup Method in Class
Win32_ComputerSystem
>http://msdn.microsoft.com/library/en-
us/wmisdk/wmi/joindomainorworkgroup_method_in_class_win32_
computersystem.asp
>
>Here is a script from the TechNet Scripting Center that
uses the
>JoinDomainOrWorkgroup method:
>
>Join Computer to a Domain
>http://www.microsoft.com/technet/community/scriptcenter/c
ompmgmt/scrcm31.mspx
>
>
>--
>torgeir, Microsoft MVP Scripting and WMI, Porsgrunn
Norway
>Administration scripting examples and an ONLINE version
of
>the 1328 page Scripting Guide:
>http://www.microsoft.com/technet/community/scriptcenter/d
efault.mspx
>.
>



Relevant Pages

  • Re: Printer Admin Object
    ... Thanks but what I'm looking for is info on the printer admin object on the ... > and ports on local and remote computers. ... > Add and delete a local or remote printer. ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: Printer Admin Object
    ... and ports on local and remote computers. ... Add and delete a local or remote printer. ... Instrumentation scripts in Windows Server 2003, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: Shutdown remote server
    ... > How can I do a clean shut down of a remote server with VBScript? ... If you run it without any input arguments, it will reboot ... Const EWX_SHUTDOWN = 1 ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: Script needed: Users with Remote Access permissions on a server
    ... Remote Access permissions on a server? ... Microsoft's "Scripting guy" archive has a script that lists all users with ... I need to query a particular server or list of servers. ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.scripting.vbscript)
  • Re: script registry editing
    ... > of remote machines. ... WMI and it's StdRegProv class: ... Documentation in regobj.doc and a remote registry example in registry.vbs ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.scripting)