Windows way to Digital Learning……


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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: