Solved

Programatically change Administrator Password?

Posted on 1998-08-03
2
280 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
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…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

747 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

9 Experts available now in Live!

Get 1:1 Help Now