script to remove servers from a Domain

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top