Solved

Programatically change Administrator Password?

Posted on 1998-08-03
2
301 Views
Last Modified: 2013-12-28
We have a lot of PCs in our NT network. Actually every PC should have the same administrator password, which the user doesn't know. But over the years, the PC were delivered with different passwords. Now we need a routine to change the passwords automatically to something we want. Each PC should have the same password, because of some installations, which need a hidden admin-login, for example. Furthermore it will be reasonable to change the password from time to time.

The changing routine should work without user interaction during startup. We are thinking about writing a (Delphi?) programm and starting it via autoexec.nt

Any ideas, hints, difficulties or solutions to this?
0
Comment
Question by:aksystem
2 Comments
 
LVL 5

Accepted Solution

by:
carmine earned 100 total points
ID: 1787556
Would changing the password over the network via a batch script be acceptable?  If so download the follwoing utility:
http://www.jsiinc.com/dl/cryptpwd.zip
and create a batch file as follows:

====== BATCH FILE =====
@echo off
if "%2"=="" goto error
if not exist %1 goto nofile
del %2
REM the text between these remarks is all on one line.
for /f %%m in ('type %1') do cryptpwd.exe -m \\%%m -u Administrator -P newpassword >> %2
REM the above is on one line.
goto done
:error
echo.
echo Usage: pswd.bat wksnlistfile outputfile
echo.
goto done
:nofile
echo.
echo Input file "%1" does not exist.
echo.
:done
===== END OF BATCH FILE ====

You'll also need a file containing a list of all the workstations/servers that you want to change the passwords on.  Pass this as a parameter to the above batch file:

==== Wksn List file ====
wksnname1
workstation2
. etc
==== End of Wksn File ====

When the script has run check your output file for errors.
You can then run this script as often as as required.

0
 

Author Comment

by:aksystem
ID: 1787557
Thank you, I've tested it and it works.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

776 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