change the local administrator password on the network
hi
we have about 2000 client and we are going to change the password of local administrator,how can we do that with script or group policy or ...?
best regards.
Software
hi
we have about 2000 client and we are going to change the password of local administrator,how can we do that with script or group policy or ...?
best regards.
by hashem_hai Accepted solution
by toivo talikka Accepted solution
You can push the script to the workstations in a GPO. The following Microsoft article explains the syntax of the command 'net user':
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_user.mspx
by babydrum2003 Accepted solution
This one works for me. It does it based on OU so if your computers are in different OU's then you'll need to modify it.
Set objOU = GetObject("LDAP://OU=Computers, DC=companyname, DC=com")
objOU.Filter = Array("Computer")
Set objNetwork = CreateObject("WScript.Network")
On Error Resume Next
For Each objItem in objOU
strComputer = objItem.CN
Wscript.Echo objItem.cn
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "typenewpasswordhere"
objUser.SetInfo
Next
by bryan.dylan Accepted solution
This discussion is closed to new replies.
Sort by Trending