Solved

Programatically change Administrator Password?

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

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Configuring Remote Assistance for use with SCCM
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

726 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