How to Set the Action Account on Multiple Computers in Operations Manager 2007

Applies To: Operations Manager 2007 R2, Operations Manager 2007 SP1

This procedure shows you how to use a Windows PowerShell script, set-ActionAccount.ps1, to set the action account on multiple computers. You will need to download the set-ActionAccount.ps1 script to the computer that hosts the Operations console and Operations Manager 2007 Command Shell. For more information about the set-ActionAccount.ps1 script see the SC Ops Mgr 2007 Resource Kit (http://go.microsoft.com/fwlink/?LinkId=92596).

You can specify the computers you want to change the action account for by either creating a new computer group or by selecting a computer group from discovered inventory. Both procedures are described in the following sections. For the purposes of these procedures, it is assumed that the set-AcitonAccount.ps1 script was downloaded to a user's My Documents folder on the C drive.

To set the action account on multiple computers

  1. Log on to the computer with an account that is a member of the Operations Manager Administrators role for the Operations Manager 2007 management group.

  2. In the Operations console, click the Monitoring button.

    Note

    When you run the Operations console on a computer that is not a management server, the Connect To Server dialog box displays. In the Server Name text box, type the name of the Operations Manager 2007 management server that you want the Operations console to connect to.

  3. In the Monitoring pane, right-click Monitoring, point to New, and then click State View.

  4. In the Properties dialog box, in the Name text field, enter a new name for this view (for example, My Computer Group).

  5. On the Criteria tab, in the Show data related to list box, click the ellipsis () button.

  6. In the Select a Target Type dialog box, in the Look for text field, type Computer Group, click View all Targets, select Computer Group in the list, and then click OK.

  7. In the Properties dialog box, click OK.

  8. In the Monitoring pane, expand Monitoring, and then click the view you just created (for example, click My Computer Group).

  9. In the results pane (for example, the My Computer Group results pane), right-click the computer group containing target computers that you want to change the action account for, click Open, and then click Command Shell.

  10. In the Windows PowerShell window, type the path to the script followed by the name of the script, and then followed by the action account you want to change to. For example, type c:\Documents and Settings\<user>\My Documents\set-ActionAccount "ActionAccount", (where “ActionAccount” are the credentials (domain\username) for the action account that you want to set on multiple computers), and then press ENTER.

To set the action account on multiple computers using discovered inventory

  1. Log on to the computer with an account that is a member of the Operations Manager Administrators role for the Operations Manager 2007 management group.

  2. In the Operations console, click the Monitoring button.

    Note

    When you run the Operations console on a computer that is not a management server, the Connect To Server dialog box displays. In the Server Name text box, type the name of the Operations Manager 2007 management server that you want the Operations console to connect to.

  3. In the Monitoring pane, expand Monitoring, and then click Discovered Inventory.

  4. In the Actions pane, expand State Actions, and then click Change target type.

  5. In the Select a Target Type dialog box, select View all targets.

  6. In the Look for text box, type Computer Group.

  7. In the Target column, click Computer Group, and then click OK.

  8. In the Discovered Inventory (Computer Group) results pane, right-click the computer group containing target computers that you want to change the action account for, click Open, and then click Command Shell.

  9. In the Windows PowerShell window, type the path to the script followed by the name of the script, and then followed by the action account you want to change to. For example, type c:\Documents and Settings\<user>\My Documents\set-ActionAccount "ActionAccount", (where "ActionAccount" are the credentials (domain\username) for the action account that you want to set on multiple computers), and then press ENTER.