[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 424
  • Last Modified:

Chaning local admin password

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?
  • 3
  • 2
1 Solution
Pete LongConsultantCommented:
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.
From http://infocenter.cramsession.com/TechLibrary/GetHtml.asp?ID=1373&CatID=267
For a VB Solution see http://www.experts-exchange.com/Security/Win_Security/Q_20946526.html

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

Also see
Program: ResetPW.EXE: Remote Password Change Utility
kind4meAuthor Commented:
Not for servers, for desktops / laptops.  will this work for that as well?
Pete LongConsultantCommented:
Yes :)
kind4meAuthor Commented:
I am using PsPasswd, but that you for replying so quickly
Pete LongConsultantCommented:

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now