Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Disjoin Domain via script

Posted on 2011-10-12
Medium Priority
Last Modified: 2013-11-14
The other day we lost our domain server at work we have a new one but lost everything off our old one. Now we have togo around to 500+ computers and manually unjoin and rejoin the domain. Is there a script i can run from the local machine via thunbdrive to make this task easier?
Question by:sporkina
  • 2
  • 2
LVL 15

Accepted Solution

DonConsolio earned 2000 total points
ID: 36959694

Join domain:
NETDOM /Domain:MYDOMAIN /user:adminuser /password:apassword

Leave domain:
use /JOINWORKGROUP to join a dummy workgroup

Author Comment

ID: 36959719
Would that involve installing netdom on all the computers?
LVL 15

Expert Comment

ID: 36959738
Netdom should be available on your server 2008 by default, run the script there.

For more informations open cmd.exe and type:
netdom help join /help

Author Comment

ID: 36959798
sorry i forgot to add this is a school and the people that was before me don't have a set naming convention. but i will give it a try.
LVL 51

Expert Comment

ID: 36962647
Or copy netdom to the usb stick and run it from there.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question