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.

Regards
britholAsked:
Who is Participating?
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
Just only to add.

You may be interested also with that VBScript which is written very good
http://gallery.technet.microsoft.com/ScriptCenter/3433d078-821b-4a9c-83af-038e9893c864/

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

Regards,
Krzysztof
0
 
Acosta Technology ServicesCommented:
Please see the following article.  This can be accomplished through Group Policy Preferences.

http://www.windowsecurity.com/articles/Top5-Security-Settings-Group-Policy-Windows-Server-2008.html
0
 
FarWestCommented:
try this script (put it in .vbs) and run it

------------------
On Error Resume Next

Const ADS_SCOPE_SUBTREE = 2

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
objRecordSet.MoveFirst

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

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

    Wscript.Echo strComputer & "\\"& objuser.Name
     objuser.SetPassword("KeoIoad123")
    objRecordSet.MoveNext
Loop
------------------------------

good luck
0
 
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

http://www.softpedia.com/get/System/System-Miscellaneous/Account-Manager.shtml
0
 
Acosta Technology ServicesCommented:
Brithol, were you able to resolve this issue with GPP or one of the mentioned scripts?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.