I want to remove all servers in our AD Domain & NT Domain, does anybody know to script this? Would you use Netdom or something else.
Thanks.
netdom REMOVE /?
The syntax of this command is:
NETDOM REMOVE machine /Domain:domain [/UserD:user]
[/PasswordD:[password | *]]
[UserO:user] [/PasswordO:[password | *]]
[/REBoot[:Time in seconds]]
NETDOM REMOVE Removes a workstation or server from the domain.
machine is the name of the computer to be removed
/Domain Specifies the domain in which to remove the machine
/UserD User account used to make the connection with the domain
specified by the /Domain argument
/PasswordD Password of the user account specified by /UserD. A * means
to prompt for the password
/UserO User account used to make the connection with the machine to be
removed
/PasswordO Password of the user account specified By /UserO. A * means
to prompt for the password
/REBoot Specifies that the machine should be shutdown and automatically
rebooted after the Remove has completed. The number of seconds
before automatic shutdown can also be provided. Default is
30 seconds
NETDOM HELP command | MORE displays Help one screen at a time.
The command completed successfully.
Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com