change local administrator password

Posted on 2011-10-05
Last Modified: 2012-05-12
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.

Question by:brithol
    LVL 8

    Expert Comment

    by:Acosta Technology Services
    Please see the following article.  This can be accomplished through Group Policy Preferences.
    LVL 12

    Expert Comment

    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
    LVL 24

    Expert Comment

    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
    LVL 39

    Accepted Solution

    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

    LVL 8

    Expert Comment

    by:Acosta Technology Services
    Brithol, were you able to resolve this issue with GPP or one of the mentioned scripts?

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
    Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now