Solved

change domain pc--local administrator password

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

Expert Comment

by:Americom
Comment Utility
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
 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
0
 
LVL 14

Accepted Solution

by:
Dhiraj Mutha earned 500 total points
Comment Utility
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
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
 
LVL 14

Expert Comment

by:Dhiraj Mutha
Comment Utility
The script can be encoded.
0
 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
I prefer to take advantage of group policy, that's what its there for. :-)
0
 
LVL 57

Expert Comment

by:Mike Kline
Comment Utility
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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Companies that have implemented Microsoft’s Active Directory need to ensure that the Active Directory is configured and operating properly. If there are issues found and not resolved, it eventually leads the components to fail or stop working and fi…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now