Changing Local Admin Passwords!

Q

QBob

Hello and thank you for reading. Currently I change my Local Admin
passwords using cusrmgr and it works great however, I do not know if it
works for the systems until there is a problem. Does anyone have a better
way of changing local admin passwords for 200+ systems? I would really like
something that gives me a response if it fails on some systems, or at least
some notification that it worked. Thanks in advance!
 
R

Russ

Run a login script from a Group policy assigned to either startup or login
script. place the file in the GPO Script folder so that it is not accessible
by other users. If you check out MS Script center you can easily log it to a
specific machines application log with some tweaks. It only takes about 5
seconds and run every time. here is the .vbs code to get ya started.

strComputer = "." '<--- leave it to "." and it will run on the local box
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "test"
objUser.SetInfo
 
N

Nex6

Here:

/code:
for /f "usebackq" %%i in (c:\pullchg1.txt) do psexec.exe %%i net.exe
user administrator password >> c:\reportlog.txt
/code:

load psexec to your system32 directory,

create a list for pullchg1.txt; this is the computer name list,

and when its done it will log everything to reportlog.txt


-Nex6
 
N

Nex6

Nex6 said:
Here:

/code:
for /f "usebackq" %%i in (c:\pullchg1.txt) do psexec.exe %%i net.exe
user administrator password >> c:\reportlog.txt
/code:

load psexec to your system32 directory,

create a list for pullchg1.txt; this is the computer name list,

and when its done it will log everything to reportlog.txt


-Nex6
I would Never, place a password in a startup script or policey.

but thats just me, I am paranoid :)



-Nex6
 
N

Nex6

ps:

the script will run form a win2k workstation and it will change all
machines in the list, that you have local admin rights to.

-Nex6
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top