Change Local Administrator Password thru GPO
- You can script itThis script will change your local Administrators passwords to the one you specify. (Note that you'll need to encrypt this one using Microsoft script encrypter if your users shouldn't be able to read it in clear text.)
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 |
Best way to use this script is to run it using the Startup script option in a Group Policy object, since these scripts run with the credentials of the Local System account.
Start the Group Policy snap-in, expand Computer Configuration, expand Windows Settings, click Scripts (Startup/Shutdown), and then in the right pane, add a script.
To change to Local Administrator’s password for all machines assigned this Group Policy, edit the policy and choose:
<Computer Configuration> –> <Preferences> –> <Control Panel Settings> –> <Local Users and Groups>
Right click in the white space and select New –> Local User.
Configure the Action for Update, and the username of Administrator, and then your new password twice. You can also change the expiration options, etc.
Once saved, it will now show in the list. You can use this area to add local users if you needed to as well. Some companies may want to set the Local Administrator to disabled, and create a custom Local Administrator with a different username.
That’s it. Once all the PCs get the new policy applied, your local administrator password will be changed.
Comentarios
Publicar un comentario
Dime si la información de este blog te sirvio.