change local administrator password

HI,  I have a client that have a building where they have at least 100 pcs and he have a domain working in WIndows 2008 R2.

Now he needs to change the administrator local password of the computers because some users are using the local admininistrator.

How can I change the administrator password without going to one by one pc.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Please see the following article.  This can be accomplished through Group Policy Preferences.
try this script (put it in .vbs) and run it

On Error Resume Next


Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"

Set objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
    "Select Name From 'LDAP://DC=company,DC=com,DC=sa' Where objectClass='computer'"
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set objRecordSet = objCommand.Execute

Do Until objRecordSet.EOF
    strComputer = objRecordSet.Fields("Name").Value

    Set objuser = GetObject("WinNT://" & strComputer & "/Administrator")

    Wscript.Echo strComputer & "\\"& objuser.Name

good luck
SandeshdubeySenior Server EngineerCommented:
Use this excellent tool which can change any local password which is connected to domain assuming you have admin rights on local PC.

account manager 2.10
Krzysztof PytkoSenior Active Directory EngineerCommented:
Just only to add.

You may be interested also with that VBScript which is written very good

Besides that all, I would use GPP for that. It's much easier in implementation


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brithol, were you able to resolve this issue with GPP or one of the mentioned scripts?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.