Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Administrator password 2

Status
Not open for further replies.

jakess

Technical User
Apr 17, 2000
418
ZA
Is there any free utilities that can change Administrators password in one go on different servers.
 
Jakess, have you tried the utility yet? Did it work for you? Please let me know cos I am also looking into using an administrator password utility that would run automatically on all our servers.
 
You can do it via vbs with something like this:

Code:
Set objWshNetwork = CreateObject("WScript.Network")
strComputer = objWshNetwork.ComputerName
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")

objUser.SetPassword "blahblah"
objUser.SetInfo

Tie it to a GPO that covers the OUs containing the servers. You can set appropriate rights on the file so that users can't read it.

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
 
matahari i use that util all the time and it works flawlessly. I'm sure Pats VB script will work fine as well so take your pic.





When you are the IT director, it's your job to make sure the IT works. If it does work they know already and if it doesn't, they don't want to hear your pathetic excuses.
 
Yep - either way should work. It all depends on the scope. If you need to manually do it on just a single remote box, pspasswd would work. With a little editing, so would the vbs file.

If you need to do it on a bunch of remote machines, and want to make sure that they are always what you're setting them to, a GPO would likely be the better solution. Again, either method could be used in a GPO.

Options, lots of options.

A star for porkchopexpress for that answer.

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
 
Thanks Pat. One for your nifty script as well.





When you are the IT director, it's your job to make sure the IT works. If it does work they know already and if it doesn't, they don't want to hear your pathetic excuses.
 
I actually forgot about PStools. Yes it will work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top