Remove & Join To Domain By Batch File In Windows 7

January 18, 2015 at 07:45:42
Specs: Windows 7

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

Can anyone help?

See More: Remove & Join To Domain By Batch File In Windows 7

Report •

January 18, 2015 at 09:35:33
So, what is your batch file and what errors do you get? I presume that you are running the script as a Domain Administrator.

Report •

January 18, 2015 at 22:08:01
What I need to write a command in the batch file?
I try this:

Report •

January 18, 2015 at 23:05:13
Are you running the script as an Administrator? What error message(s) do you get? Are you specifying a Domain Administrator as the user? (if so, you shouldn't write the password in a batch file - this is an obvious security hole.)

Report •

Related Solutions

January 19, 2015 at 00:37:47
Running as an Administrator, I do not get these error that the batch file is not done.
My question is different, what should write in the batch file to perform what I want?

Report •

January 19, 2015 at 01:22:17
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.)

Report •

Ask Question