Windows way to Digital Learning……

Posts tagged ‘How to Change the Local Administrator Password on Domain Member Computers’

How to Change the Local Administrator Password on Domain Member Computers.

We will discuss here two methods to change local administrator password.

First method using Power Shell / Script.

Script:

Set WshNetwork = WScript.CreateObject(“WScript.Network”) strComputer = “.”
Set objUser = GetObject(“WinNT://” & strComputer & “/Administrator,user”)
objUser.SetPassword “NEW.PASSWORD” ‘ Enter new password between brackets
objUser.SetInfo

 

Download the complete powershell script from here.

Second Method using GPP.

There is a Group Policy Preference (GPP) that can do it for you.

Changing the local Administrator password on domain members.

Start the Group Policy snap-in, expand Computer Configuration, expand Preferences, click Control Panel, and then 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.

More information:

Advertisements

Tag Cloud