Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Domain unjoin script on windows 7 and windows xpt

$
0
0

The following script works find for domain name change. Is it possible to use powershell script with Domain Admin rights. Because once i apply the following command which will continuously ask the password.Its very troubling for me to enter the password all the time. There are about 100 users that i have to change the domain name . What is the easy way to changing the domain name.

The following script is suitable for windows 7   

Add-Computer –ComputerName COMP01 –Domain testlk.int –LocalCredential testlk\administrator –UnjoinDomainCredential COMP01\administrator –Credential testlk\administrator –Restart

What is the best tool for XP mahcine.


Thank you

Partner


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>