Hello,
I want to make a batch file that does the:
Remove from domain
Join to doamin
All one script that performs this
I tried to make a batch file with the NETDOM but the thing did not work
I try this:
NETDOM REMOVE /Domain:XXXXXX /user:XXXXXXX /password:XXXXXXX /SHUTDOWN /R
NETDOM ADD /Domain:XXXXXXX /user:XXXXXXX /password:XXXXXXX /SHUTDOWN /R
Can anyone help?
You’ve already listed the commands to use. As there is a reboot involved then you obviously need two batch files rather than just one.
You still haven’t said what errors you get from these commands and whether you are using a Domain Administrator in the “user” field. (It isn’t going to work if you aren’t.)