Solved

change domain pc--local administrator password

Posted on 2009-03-31
7
561 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
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.
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24036009
0
 
LVL 14

Accepted Solution

by:
Dhiraj Mutha earned 500 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"
objUser.SetInfo
 
' ------ SCRIPT END ------	

Open in new window

0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 47

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.
0
 
LVL 14

Expert Comment

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

Expert Comment

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

Expert Comment

by:Mike Kline
ID: 24036499
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

810 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