Discussion Locked

Change Local Admin Password Remotely

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a NT single master domain. Over the last few years, the local password on each desktop has inconsistently been applied. I would like to include a script in login.bat That would change the users local admin name and password remotely. Can anyone help?

9 replies

by itnetman

The only way we know to change the local administrator password remotely is to open User Manager for Domains then select each computer in turn and change the local administrator password.

by david.funnell

Let me start by saying 'anything is possible' with the additional caveat of 'if you have the time and patience'.

The local machine accounting information is held in the registry, if you have the time and inclination you'll find where. The password is encrypted.

So here is the scenario, the program/script needs to locate the Administrator user, and replace the encrypted password with a new one, by the way it would need to be encrypted, see where we are going...

As I see it you have three choices unfortunately they all result in manual labour :-)

1. do it centrally using user manager and selecting each PC individually and modifying the local admin password

2. visit each PC in turn and change it locally, give you a chance to meet your customers.

3. A combination of 1 & 2.

Regards
David

by joseph moore

Dameware NT Utilities.
www.dameware.com

It is a great Windows NT/2K/XP program that will allow you to select each remote system, and change any password on any local account. It is what I use.

by worldofzeus

The step is to create a file called info.txt. In this text file, enter the name of the machine you want to change the password on then a comma. The the password you want.

eg: -
test12,password

The next step is to create a batch file called change_password.bat. In this file, type in the following: -

FOR /f "Delims=, tokens=1,2 " %%a in (info.txt) DO CALL :WKS_CHANGE %%a %%b
GOTO :EOF

:WKS_CHANGE
set WKS=%1
set PWD=%2

soon \\%WKS% cmd /c net user Administrator %PWD%

Once youhave created the batch file, just run it.

Hope this helps

Zeus

This discussion is closed to new replies.