Solved

Programatically change Administrator Password?

Posted on 1998-08-03
2
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Determining the an SCCM package name from the Package ID
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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