Home » Scripts » Changing Passwords with Operations Manager

Changing Passwords with Operations Manager

Yesterday when I was going to do some tests in one of my labs I could not remember the password. Fortunately the Operations Manager R2 RMS machine was unlocked so I could use it. I then created a rule that ran a modification of the following script on each machine, and swish! I could logon again 🙂

Set WshNetwork = WScript.CreateObject("WScript.Network")
strComputer = WshNetwork.ComputerName
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator,user")
objUser.SetPassword "NewPasswordHere"
objUser.SetInfo

With that in mind it is funny how some organization look at security and accounts. It is not unusual that a consultant or co-worker get Administrator permissions or Author permissions in Operations Manager, but they would never get full exchange administrator or domain administrator permissions in the environment.

Some interesting link regarding the subject, Ops Mgr security guide and Ops Mgr Security Hardening Guide.


5 Comments

  1. Hi, thanks for your reply.
    But I’m wondering how to use your way (as written above) to change client’s password. Could you show (or send) me the more detailed guide to do this task?

    Thank you
    Ngoc Nguyen.

  2. Hi, My name is Ngoc Nguyen. Thanks for your great blog.
    I would like to ask for detailed steps how to change a client password.
    For examle, my lab system contains a DC (server 2003), RMS 2007 r2 (server 2008) and a windows 7 as client. All of them joined a domain.
    Now I would like to know how to change the login password for the client who logged in to windows 7.
    Looking forward to your reply,

    Thanks and best regards.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.