none
How can I change my XP clients local admin password

    Question

  • Hi experts

    I have a domain with mixed XP and 7 clients. My DC is on a Server 2008 R2

    I want to change my clients local administrator password, I don't have WSUS so I can not deploy Preferences XP Client.

    how can I change my XP clients local admin password?

    Monday, February 09, 2015 5:21 PM

Answers

  • Hi friends

    Here is the best solution for changing the local administrators password when it is not possible to use preferences policy!

    Use these codes:

    Set objOU = GetObject("LDAP://OU=test, DC=company, DC=com")
    objOU.Filter = Array("Computer")
    
    For Each objItem in objOU
        strComputer = objItem.CN
        Set objUser = GetObject("WinNT://" & strComputer & "/Administrator")
        objUser.SetPassword("YournewP@$$")
    Next

    1- Change the distinguished name of the OU

    2- Use your own Password

    3- Change file extension to .vbs

    4- Use screcr.exe and encrypt your script

    • Install sce10en.exe
    • Open CMD in installation folder
    • Use this code: screcr c:\test.vbs c:\encode.vbe

    5- Add a Startup Policy


    • Marked as answer by Mani Amini Monday, February 09, 2015 11:49 PM
    • Edited by Mani Amini Monday, February 09, 2015 11:51 PM
    Monday, February 09, 2015 11:48 PM

All replies