Resetting a local Admin Password

J

James Robertson

Can you reset the Local Admin Passwords on several
machines through Group Policy? And manage passwords
through the Domain.
 
T

Torgeir Bakken (MVP)

James said:
Can you reset the Local Admin Passwords on several
machines through Group Policy?

Hi

You could do it in a computer startup script (with a GPO) that runs as
part of the boot up process (before the user logs in). It runs under the
system context and has admin rights.


As long as the Administrator account name is "Administrator", this will work:

sNewPassword = "testpassword"
Set oWshNet = CreateObject("WScript.Network")
sComputer = oWshNet.ComputerName

On Error Resume Next
Set oUser = GetObject("WinNT://" & sComputer & "/Administrator,user")
oUser.SetPassword sNewPassword
oUser.SetInfo
On Error Goto 0
 
B

Bobby McMillan [MSFT]

There is not a way to do this via group policy. There is however a way to
do it with a utility named cusrmgr.exe. Take a look at this:

272530 How to Use the Cusrmgr.exe Tool to Change Administrator Account
Password
http://support.microsoft.com/?id=272530



This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top