Chaning local admin password

Posted on 2005-05-05
Last Modified: 2010-04-11
Here is the situation:

We are about to undergo very intensive Pen testing on the network
The servers, routers and switches are fine
The desktops are not as well locked down

I need to delete unused local user accounts (all with the same name) and change the current local admin password (one of three passwords) to a new 15 password.

I have 300 users on site, 2003 AD, SMS, and IBM Director running on servers to assist. Any ideas?
Question by:kind4me
    LVL 57

    Accepted Solution

    Change All Local Admin Passwords

    Change Local Administrator Password Remotely
     Download the utility 'cryptpwd' from :

    Now just create a text file containing all your server names
    (e.g. serverlist.txt) and then create a batch file with the following line :

    FOR /F %%x in (serverlist.txt) do cryptpwd -m \\%%x -P newpassword

    (where newpassword is the password you want to set as the
    local administrator password on the servers.)

    (You obviously need to have admin. rights to the servers in order
    to change the password.)
    This method changes the password immediately.
    For a VB Solution see

    For a WMI Solution see http:Q_21098121.html#11852516

    Also see
    Program: ResetPW.EXE: Remote Password Change Utility
    LVL 8

    Author Comment

    Not for servers, for desktops / laptops.  will this work for that as well?
    LVL 57

    Expert Comment

    by:Pete Long
    Yes :)
    LVL 8

    Author Comment

    I am using PsPasswd, but that you for replying so quickly
    LVL 57

    Expert Comment

    by:Pete Long

    Featured Post

    Superior storage. Superior surveillance.

    WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

    Join & Write a Comment

    Suggested Solutions

    When the confidentiality and security of your data is a must, trust the highly encrypted cloud fax portfolio used by 12 million businesses worldwide, including nearly half of the Fortune 500.
    I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    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

    18 Experts available now in Live!

    Get 1:1 Help Now