change domain pc--local administrator password

Posted on 2009-03-31
Medium Priority
Last Modified: 2012-05-06
I want to change unique password for local administrator password for all domain member machines. Is there any way?
Question by:Komal_Upadhyay
LVL 18

Expert Comment

ID: 24036002
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.
LVL 48

Expert Comment

by:Donald Stewart
ID: 24036009
LVL 14

Accepted Solution

Dhiraj Mutha earned 2000 total points
ID: 24036019
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"
' ------ SCRIPT END ------	

Open in new window

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.

LVL 48

Expert Comment

by:Donald Stewart
ID: 24036034
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.
LVL 14

Expert Comment

by:Dhiraj Mutha
ID: 24036044
The script can be encoded.
LVL 48

Expert Comment

by:Donald Stewart
ID: 24036056
I prefer to take advantage of group policy, that's what its there for. :-)
LVL 57

Expert Comment

by:Mike Kline
ID: 24036499
Yes the scripts can be encoded but I like the safety with preferences

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.


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.

Join & Write a Comment

It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
One thing I've always found frustrating is no matter how many times one asks the end users to not save things on their local machines, they do it anyway.  Forget that we don't back up the desktops - only the servers.  Well, let's sneak their data on…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question