change domain pc--local administrator password

I want to change unique password for local administrator password for all domain member machines. Is there any way?
Komal_UpadhyayAsked:
Who is Participating?
 
Dhiraj MuthaConnect With a Mentor Level DCommented:
Save the below code as .vbs and run it from GPO on all the systems.
'This Script will chage the Local Administrators (Administrator) Password.
 
' ------ SCRIPT START ------
 
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/administrator, user")
 
objUser.SetPassword "Password Here"
objUser.SetInfo
 
' ------ SCRIPT END ------	

Open in new window

0
 
AmericomCommented:
To reset local account by GPO:

You need either Vista or Windows Server 2008, just run Group Policy management and follow the steps to create the GPO:

Computer Configuration>Preferences>Control Panel>right-click Local Users and Groups, from the menu select New-Local User. Select Update as the action, type Administrator into the User name text box, then type the new password into the Password text box, confirming the password in Confirm Password text box. Press OK.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
DonNetwork AdministratorCommented:
Why would anyone in their right mind use a cleartext script with a password in it to change passwords? Basically defeats the purpose of the password in the first place IMHO.
0
 
Dhiraj MuthaLevel DCommented:
The script can be encoded.
0
 
DonNetwork AdministratorCommented:
I prefer to take advantage of group policy, that's what its there for. :-)
0
 
Mike KlineCommented:
Yes the scripts can be encoded but I like the safety with preferences
http://blogs.technet.com/grouppolicy/archive/2008/08/04/passwords-in-group-policy-preferences.aspx

Are passwords in preference items secure?
Passwords in Group Policy preference items are protected using 256-bit AES encryption. In the XML source code of a preference item, the password does not appear as clear text; it is encrypted. The client reads the XML, decrypts the password, and implements the configuration.

Thanks
Mike
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.