I have used the script below successfully to create a user, is there a way to have the script make the user a member of the Administrators group when creating the account?
strComputer = "."
Set colAccounts = GetObject("WinNT://" & strComputer & "")
Set objUser = colAccounts.Create("user"...
I am trying to figure out the best way to script removing a computer from a Domain and adding it to a workgroup. I also then have to add a local user and move the domain profile that was there to the workgroup user's profile. Any suggestions or help would be appreciated.
I have a script I have been playing with that uses netdom, but I would like to have a script that can remove the computer from one domain and rename the PC in the process of joining it to a new domain. For the new computername I wanted it to rename it with the username of the person logged in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.