Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove W2K server from domain & add to workgroup by cmd line

Status
Not open for further replies.

kapt

ISP
Oct 31, 2001
37
US
Need to find a way to remove a Windows 2K server from a domain and have it join a workgroup by using the command line.
 
Just curious as to why you would want to do this? H cker?

Justin
 
To move a server out of the domain you must have local admin level access, and the same applies to adding it to a workgroup. Do it with the GUI interface, logged on to to the system as the local admin account.

If you are not the local admin, you have no business messing up the system!

Do it the way it is designed to work! :)

David
 
I am working on a script that requires removing a server from the domain and renames the server so a redundant server can be brought up as that server. Right now I am using the netdom command to remove the server, but it there is no command that I know of that I can run to add this server to a workgroup. This is an automated script, so the GUI is out of the question, it must be command line. thanks!
 
What is critical about the server name?
Remember the rule that ALL SIDs are unique, and it applies to system names too. If this was not the case, turning off server of "name1," then renaming another server to "name1" would automatically make it replace the original "name1" in the domain....just does not work that way, each machine has a unique SID.

If you restore the original server to the new server platform from backups, however, it will work to replace the first system in the domain. The original system, however, must be removed totally from the domain to avoid conflicts.

Perhaps you can use the netsh (netsh.exe)utility to run your script?

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top