<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">System Center Operations Manager Command Shell</title><subtitle type="html" /><id>http://blogs.msdn.com/scshell/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/scshell/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2006-09-28T22:21:00Z</updated><entry><title>What Rules My Class?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/12/13/what-rules-my-class.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/12/13/what-rules-my-class.aspx</id><published>2007-12-13T22:48:00Z</published><updated>2007-12-13T22:48:00Z</updated><content type="html">&lt;P&gt;There have been a few questions regarding how to enumerate the rules targeting a class.&lt;/P&gt;
&lt;P&gt;Here is a script you can save as a file. I named the script get-rulesforclass.ps1&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;param ([String] $className)&lt;/P&gt;
&lt;P&gt;$class = get-monitoringclass | where {$_.Name -eq $className}&lt;/P&gt;
&lt;P&gt;if ($class -eq $null)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;throw "Class '$className' not found.";&lt;BR&gt;}&lt;/P&gt;
&lt;P&gt;if ($class -is [Array])&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;throw "More than one class was found with name '$className'.";&lt;BR&gt;}&lt;/P&gt;
&lt;P&gt;write-host $class&lt;/P&gt;
&lt;P&gt;get-rule | where {$_.Target.Id -eq $class.Id} &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Pass the name of the class to the script.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;get-rulesforclass.ps1 Microsoft.Windows.Computer&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The Target property of the rule is where most people get stuck because it is not clear that you must refer to the Id property off of the target property to perform the comparison against the class's Id.&lt;/P&gt;
&lt;P mce_keep="true"&gt;This is the final blog post to the System Center Operations Manager Command Shell blog. I will be changing my focus and no longer have time to properly contribute to this blog. As this is the last post I will not longer be taking questions or comments. I wish you all the best of luck in your scripting endeavors.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Sayonara!&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Roger Sprague&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6764494" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Where Are My Properties?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/11/26/where-are-my-properties.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/11/26/where-are-my-properties.aspx</id><published>2007-11-26T23:14:00Z</published><updated>2007-11-26T23:14:00Z</updated><content type="html">&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;I consistently get asked how to display&amp;nbsp;class specific properties. The solution is simple but not very obvious. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;get-monitoringobject ...&amp;nbsp;|&amp;nbsp;format-list *&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;You are probably wondering why you even need to do this. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;You are not alone:)&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;Each MonitoringObject can be an instance of multiple classes so there is no limit on the number of enumerable properties on each MonitoringObject. To control the formatting experience we only display properties that are essential to identifying the instance you want to manage. To see the remaining properties you must override the default formatter by calling format-list or format-table. When attempting to format an object which has&amp;nbsp;four or more&amp;nbsp;variable length properties I find that format-list works best. Let's take a closer look at displaying all of the properties for each instance of Microsoft.Windows.Computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;$class = get-monitoringclass | where {$_.Name -eq "Microsoft.Windows.Computer"}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;get-monitoringobject -MonitoringClass: $class | format-list *&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;BTW this approach also works with objects returned by the&amp;nbsp;OperationsManagerMonitoring provider.&lt;/SPAN&gt; 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;PS Monitoring:\localhost&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&amp;gt;dir | format-list *&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;And in case you aren't already aware 'fl' is&amp;nbsp;the alias for format-list so the following command will work as well.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;dir | fl *&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hope that helps and as always please post your questions and comments and I will make sure they are addressed in future posts. 
&lt;P&gt;Roger Sprague &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6534521" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Deleting Agents</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/04/25/deleting-agents.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/04/25/deleting-agents.aspx</id><published>2007-04-25T23:27:00Z</published><updated>2007-04-25T23:27:00Z</updated><content type="html">&lt;P&gt;A few of you sent mail asking how to delete an agent using the Command Shell. There is a Cmdlet for uninstalling an agent called Uninstall-Agent.&amp;nbsp;However, uninstalling an agent will not work&amp;nbsp;if&amp;nbsp;the computer the&amp;nbsp;agent is hosted by is not&amp;nbsp;available.&amp;nbsp;To help address the issue I&amp;nbsp;created a function to automate the process. Keep in mind this function should only be used to delete an agent&amp;nbsp;hosted by a&amp;nbsp;computer that no longer exists otherwise you should use Uninstall-Agent.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Summary&lt;BR&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete an agent hosted by a non-existent computer.&lt;BR&gt;# Params&lt;BR&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AgentNames - An array of strings that contain the FQDN of agents to delete.&lt;BR&gt;# Returns&lt;BR&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; None&lt;BR&gt;function global:Delete-Agent([System.String[]] $agentNames)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;$NoAgentsErrorMsg = "`nNo agent names specified. Please specify the FQDN for each agent you want to delete.`n";&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;if ($agentNames -eq $null)&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;Write-Host $NoAgentsErrorMsg;&lt;BR&gt;&amp;nbsp;&amp;nbsp;return;&lt;BR&gt;&amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$administration = (get-item .).ManagementGroup.GetAdministration();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$agentManagedComputerType = [Microsoft.EnterpriseManagement.Administration.AgentManagedComputer];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$genericListType = [System.Collections.Generic.List``1]&lt;BR&gt;&amp;nbsp;$genericList = $genericListType.MakeGenericType($agentManagedComputerType)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$agentList = new-object $genericList.FullName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;foreach ($agentName in $agentNames)&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;$agent = Get-Agent | where {$_.PrincipalName -eq $agentName}&lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;if ($agent -eq $null)&lt;BR&gt;&amp;nbsp;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$msg =&amp;nbsp; "Agent '{0}' not found." -f $agentName;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Write-Host $msg;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;&amp;nbsp;&amp;nbsp;else&lt;BR&gt;&amp;nbsp;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$agentList.Add($agent);&lt;BR&gt;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;BR&gt;&amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if ($agentList.Count -eq 0)&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;Write-Host $NoAgentsErrorMsg;&lt;BR&gt;&amp;nbsp;&amp;nbsp;return;&lt;BR&gt;&amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$genericReadOnlyCollectionType = [System.Collections.ObjectModel.ReadOnlyCollection``1]&lt;BR&gt;&amp;nbsp;$genericReadOnlyCollection = $genericReadOnlyCollectionType.MakeGenericType($agentManagedComputerType)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;$agentReadOnlyCollection = new-object $genericReadOnlyCollection.FullName @(,$agentList);&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;$msg = "`nDeleting {0} agents:`n" -f $agentReadOnlyCollection.Count;&lt;BR&gt;&amp;nbsp;Write-Host $msg;&lt;BR&gt;&amp;nbsp;foreach ($agent in $agentReadOnlyCollection)&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;Write-Host $agent.PrincipalName;&lt;BR&gt;&amp;nbsp;}&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;$administration.DeleteAgentManagedComputers($agentReadOnlyCollection);&lt;BR&gt;}&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hope that helps and as always please post your questions and comments and I will make sure they are addressed in future posts. 
&lt;P&gt;Roger Sprague &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2275978" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Command Shell Introduction Video</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/04/18/command-shell-introduction-video.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/04/18/command-shell-introduction-video.aspx</id><published>2007-04-18T06:23:00Z</published><updated>2007-04-18T06:23:00Z</updated><content type="html">&lt;P&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Right before MMS 2007 I finished a video to help introduce folks to the Command Shell.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Here's&amp;nbsp;a link.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;U&gt;&lt;FONT color=#0066cc&gt;&lt;A href="http://www.microsoft.com/winme/0703/28666/Command_Shell_Intro_Edited.asx" mce_href="http://www.microsoft.com/winme/0703/28666/Command_Shell_Intro_Edited.asx"&gt;http://www.microsoft.com/winme/0703/28666/Command_Shell_Intro_Edited.asx&lt;/A&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;A href="http://www.microsoft.com/winme/0703/28666/Command_Shell_Intro_Edited.asx" mce_href="http://www.microsoft.com/winme/0703/28666/Command_Shell_Intro_Edited.asx"&gt;&lt;FONT color=#0000ff&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Let me know if you want more videos.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;As always post your questions and comments.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=label1&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Roger Sprague&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2169040" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Discovering Windows Computers</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/02/09/discovering-windows-computers.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/02/09/discovering-windows-computers.aspx</id><published>2007-02-10T00:42:00Z</published><updated>2007-02-10T00:42:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much like the Operations Manager UI Console the Command Shell offers several ways to discover Windows computers. You can either search by computer name&amp;nbsp;or search by LDAP query. Let start by looking at the diferences between each approach.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following command defines a LDAP query and passes it to the New-WindowsDiscoveryConfiguration Cmdlet thereby creating an LDAP based WindowsDiscoveryConfiguration.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$query = New-LdapQueryDiscoveryCriteria –LdapQuery: “(sAMAccountType=805306369)(name=srv1.contoso.com*)” –Domain:”contoso.com” 
&lt;P&gt;$discoConfig = New-WindowsDiscoveryConfiguration –LdapQueryDiscoveryCriteria:$query&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In contrast the following command defines a name based WindowsDiscoveryConfiguration that will direct discovery to find both srv1.contoso.com and srv2.contoso.com. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$discoConfig = New-WindowsDiscoveryConfiguration&amp;nbsp; -ComputerName: "srv1.contoso.com", "srv2.contoso.com" &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is a lot more you can specify when defining a WindowsDiscoveryConfiguration. The following commands will direct the discovery module to use specific credentials, perform verification of each discovered Windows computer and constrain the type of discovered object to a Windows server. The ComputerType parameter is an enum that can be one of Workstation, Server, or Both. The PerformVerification switch is used to direct the discovery module to verify that only available computers should be returned. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Prompt for credentials used to perform the discovery. 
&lt;P&gt;$creds = Get-Credential 
&lt;P&gt;# Define a WindowsDiscoveryConfiguration 
&lt;P&gt;$discoConfig = New-WindowsDiscoveryConfiguration –ComputerName:&amp;nbsp;"srv3.contoso.com", "srv4.contoso.com"&amp;nbsp;–PerformVerification: $true –ActionAccount:$creds -ComputerType: "Server" 
&lt;P&gt;# Select the Management Server used to run the discovery. 
&lt;P&gt;$managementServer = Get-ManagementServer –Root: $true 
&lt;P&gt;# Start the discovery process. 
&lt;P&gt;$discoResult = Start-Discovery –ManagementServer: $managementServer –WindowsDiscoveryConfiguration: $discoConfig 
&lt;P&gt;# Check that the discovery process discovered the Windows computers you specified. 
&lt;P&gt;$discoResult.CustomMonitoringObjects 
&lt;P&gt;# Last but not least install agents on the discovered computers. 
&lt;P&gt;Install-Agent –ManagementServer: $managementServer –AgentManagedComputer: $discoResult.CustomMonitoringObjects&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hope that helps and as always please post your questions and comments and I will make sure they are addressed in future posts. 
&lt;P&gt;Roger Sprague &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1637389" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Running Tasks</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/02/06/running-tasks.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/02/06/running-tasks.aspx</id><published>2007-02-06T06:30:00Z</published><updated>2007-02-06T06:30:00Z</updated><content type="html">&lt;P&gt;You can run a task from the Command Shell much like you would from the UI Console. You start by selecting the object you want to work with then you select the task you want to run. In this scenario we are going to look at resetting the Health Service store of a hypothetical&amp;nbsp;agent named echo12.contoso.com.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like most blog posts all of the examples&amp;nbsp;are based on working directly from the Root Management Server with a connection defined to localhost. If that is not how you are working simply replace 'localhost' with the name of your connection in the examples.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Monitoring:\localhost&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's start by moving to the location of the Health Service of the computer we want to manage.&amp;nbsp;If you are not sure just list all of the items under Microsoft.SystemCenter.AllComputersGroup by using 'dir' or the 'Get-ChildItem' command&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Move to the AllComputersGroup.&lt;/P&gt;
&lt;P&gt;cd Microsoft.SystemCenter.AllComputersGroup &lt;/P&gt;
&lt;P&gt;# List all&amp;nbsp;of the member&amp;nbsp;names of the AllComputersGroup&lt;/P&gt;
&lt;P&gt;dir |&amp;nbsp;Format-List PathName &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Move to the location of one of the members of the All Computers Group. &lt;/P&gt;
&lt;P&gt;cd &lt;STRONG&gt;echo12.contoso.com&lt;/STRONG&gt; &lt;/P&gt;
&lt;P&gt;# Move to the location of the Health Service running on your agent.&lt;/P&gt;
&lt;P&gt;cd Microsoft.SystemCenter.HealthService&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your prompt should look similar to the following. Much like all of the other Monitoring Object centric Cmdlets both Get-Task and Start-Task use the path as a context from which to work.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Monitoring:\localhost\Microsoft.SystemCenter.AllComputersGroup\&lt;STRONG&gt;echo12.contoso.com&lt;/STRONG&gt;\Microsoft.SystemCenter.HealthService&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now let's get all the tasks for the current Health Service instance.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Task | Format-List Name&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We only care about resetting the Health Service store.&amp;nbsp;We need to filter the results so that only the 'ResetHealthServiceStore' task is returned.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Task | where {$_.Name -eq "Microsoft.SystemCenter.ResetHealthServiceStore"} &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Once you have verified that your filter is working you can start the task. &lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Task | where {$_.Name -eq "Microsoft.SystemCenter.ResetHealthServiceStore"} | Start-Task&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Optionally you could create a variable to hold the task you want to start.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$task = Get-Task | where {$_.Name -eq "Microsoft.SystemCenter.ResetHealthServiceStore"}&lt;/P&gt;
&lt;P&gt;Start-Task -Task: $task&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The Start-Task Cmdlet will&amp;nbsp;block until the task it is complete. If that is not the desired behavior specify the Asynchronous switch. &lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Start-Task -Task: $task -Asynchronous&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want to see the status of your task a later time you can store the Task Result and use it to query for status updates.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$taskResult = Start-Task -Task: $task -Asynchronous&lt;/P&gt;
&lt;P&gt;Get-TaskResult $taskResult.Id&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the task requires credentials you must first enter your credentials and store them in a variable.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$creds = Get-Credential&lt;/P&gt;
&lt;P&gt;Start-Task -Task: $task -Credential: $creds&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last but not least you can specify overrides for existing properties of a task. I recommend specifying overrides by defining a variable so that you can verify your work before submitting the task. The following example is fictitious and is only used to illustrate how you would define overrides for a task.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$overrides = @{SignatureID=10; AnotherID="1092834098123407953912837"}&lt;/P&gt;
&lt;P&gt;Start-Task -Task: $task -Override: $overrides&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you are not sure which overrides are available for a given task you can use the Get-Overrides Cmdlet. The following example lists the overrides for the task stored in the $task variable. &lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$task | Get-Override&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hope that helps and as always please post your questions and comments and I will make sure they are addressed in future posts. 
&lt;P&gt;Roger Sprague&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1608488" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>MCF Over Tiering</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/01/11/mcf-over-tiering.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/01/11/mcf-over-tiering.aspx</id><published>2007-01-11T07:04:00Z</published><updated>2007-01-11T07:04:00Z</updated><content type="html">&lt;P&gt;&lt;EM&gt;If you are not familiar with MCF in MOM 2005 you can read more about it&amp;nbsp;&lt;/EM&gt;&lt;A href="http://blogs.msdn.com/jakuboleksy/archive/2006/11/21/differences-between-mcf-in-mom-2005-and-scom-2007.aspx" mce_href="http://blogs.msdn.com/jakuboleksy/archive/2006/11/21/differences-between-mcf-in-mom-2005-and-scom-2007.aspx"&gt;&lt;EM&gt;here&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt;.&amp;nbsp;I do not&amp;nbsp;go into detail about MCF here as that is an area best covered by &lt;/EM&gt;&lt;A href="http://blogs.msdn.com/jakuboleksy/" mce_href="http://blogs.msdn.com/jakuboleksy/"&gt;&lt;EM&gt;Jakub&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt;. What I do want to show you is how to setup MCF over tiering using the Operations Manager Command Shell. I encourage you to look at how to &lt;/EM&gt;&lt;A href="http://blogs.msdn.com/scshell/archive/2007/01/10/this-tier-is-your-tier.aspx" mce_href="http://blogs.msdn.com/scshell/archive/2007/01/10/this-tier-is-your-tier.aspx"&gt;&lt;EM&gt;setup tiering&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; before continuing on with this post.&lt;/EM&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MCF over tiering is a bit different than normal tiering in that you must define a run-as account used&amp;nbsp; by the Connector to connect to the tiered Management Group. Let's start by creating a run-as account used to connect to the Management Group you would like to tier. There is no Cmdlet&amp;nbsp;for creating a run-as account so we must use PowerShell script to make Operations Manager SDK calls.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$runAsAccount = New-Object Microsoft.EnterpriseManagement.Monitoring.Security.MonitoringWindowsCredentialSecureData; 
&lt;P&gt;# Use Get-Credential to get a password in the form of a SecureString type.&lt;BR&gt;$tierCreds = Get-Credential; 
&lt;P&gt;# Assumes the user name is in format&amp;nbsp;"domain\user".&lt;BR&gt;$domain,$userName, $junk = $tierCreds.UserName.Split("\"); &lt;BR&gt;$runAsAccount.Name = "My Tiered MCF Run-As Account"; # The name for this run-as account.&lt;BR&gt;$runAsAccount.UserName = $userName;&lt;BR&gt;$runAsAccount.Domain = $domain;&lt;BR&gt;$runAsAccount.SecureData = $tierCreds.Password; 
&lt;P&gt;$mg = (Get-Item .).ManagementGroup; # Get a reference to the SDK Management Group object. &lt;BR&gt;$mg.InsertMonitoringSecureData($runAsAccount); # Insert the run-as account.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE class=code&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's that was a bit verbose. Just to make sure everything worked as expected run the following command and verify your new run-as account exists. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-RunAsAccount | fl Name&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Next we need to create a tier. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Get the credentials required to connect to the tiered Management Group.&lt;BR&gt;$creds = Get-Credential ;&lt;/P&gt;
&lt;P&gt;# Create the tier.&lt;BR&gt;$tier = New-Tier -Name: "MyMcfTier" -ManagementServerName: "server2" -Credential: $creds -RunAsAccount: $runAsAccount;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Make sure your tier exists. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Tier | fl Name&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Next we need to create the Connector. There is no Cmdlet&amp;nbsp;for creating a Connector so we must use PowerShell script to make Operations Manager SDK calls. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$connectorInfo = New-Object Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorInfo;&lt;BR&gt;$connectorInfo.Name = "McfOverTieringConnector";&lt;BR&gt;$connectorInfo.Description = "McfOverTieringConnector Description"&lt;BR&gt;$connectorInfo.DiscoveryDataIsManaged = $false;&lt;BR&gt;$connector = $mg.GetConnectorFrameworkAdministration().Setup($connectorInfo); &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Make sure your connector exists.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Connector | fl Name&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Last but not least we need to add the connector to&amp;nbsp;the tier. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Add-ConnectorToTier -Tier: $tier -Connector: $connector; &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Clearly the Command Shell could benefit from a New-RunAsAccount Cmdlet and a New-Connector Cmdlet to simplify this process. In the mean time I recommend you create functions that encapsulate any process that can't be completed using Cmdlets if you must complete the process multiple times.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1448676" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>This tier is your tier...</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/01/10/this-tier-is-your-tier.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/01/10/this-tier-is-your-tier.aspx</id><published>2007-01-10T04:29:00Z</published><updated>2007-01-10T04:29:00Z</updated><content type="html">&lt;P&gt;If you happen to have multiple management groups and you need a way of seeing alerts aggregated&amp;nbsp;across all of your Management Groups or you need a way of managing one Management Group via another (proxy) Management Group then tierring is just the ticket. The Operations Manager Command Shell provides explicit support for creating tiers and connecting to tiers.&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start by connecting to the Management Group you want to make your top most tier and run the following commands.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$mgName = "The name for the tier you are creating.";&lt;/P&gt;
&lt;P&gt;$msName = "The name of your Root Management Server of the Management Group you would like to tier";&lt;/P&gt;
&lt;P&gt;$creds = Get-Credential; # The credentials needed to connect to the Management Group you would like to tier.&lt;/P&gt;
&lt;P&gt;$tier = New-Tier -Name: $mgName -ManagementServerName: $msName -Credentials: $creds;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's fairly easy and can be done without using variables. Here is a hypothetical example.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$creds = Get-Credential; &lt;/P&gt;
&lt;P&gt;New-Tier -Name: Building10 -ManagementServerName: building10 -Credentials: $creds&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that you have created the tier you need to verify that it works. &lt;/P&gt;
&lt;P&gt;Start by creating a connection to the tier you just created.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;$creds = Get-Credential; # The credentials need to connect to the tiered Management Group.&lt;/P&gt;
&lt;P&gt;Get-Tier | where {$_.Name -eq "Building10"} | New-ManagementGroupConnection&lt;/P&gt;
&lt;P&gt;cd \ # Move to the root of the provider as that is where you will discover all available connections.&lt;/P&gt;
&lt;P&gt;dir # List all connections to find the connection you just created.&lt;/P&gt;
&lt;P&gt;cd localhost.building10 #&amp;nbsp;Set the location to the connection you just&amp;nbsp;created.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Notice that the tiered connection contains the host name of the Root Management Server from which the tier was acquired to help disambiguate a tiered connection from a direct connection to the same Management Group. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can treat a tiered connection just like any other connection to a Management Group. Keep in mind the data is traveling through the Management Group from which the tier was acquired therefore most operations will be significantly slower than working directly with the Management Group. Some operations can be performed across multiple connections. Take a look at &lt;A href="http://blogs.msdn.com/scshell/archive/2007/01/04/one-provider-to-rule-them-all.aspx" mce_href="http://blogs.msdn.com/scshell/archive/2007/01/04/one-provider-to-rule-them-all.aspx"&gt;One Provider To Rule Them All!&lt;/A&gt; for more info on working with multiple connections.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1441617" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>One Provider to Rule Them All!</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/01/04/one-provider-to-rule-them-all.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/01/04/one-provider-to-rule-them-all.aspx</id><published>2007-01-04T09:16:00Z</published><updated>2007-01-04T09:16:00Z</updated><content type="html">&lt;P&gt;Along with a healthy dose of Cmdlets, the Operations Manager snapin (aka "Command Shell")&amp;nbsp;includes a PowerShell Provider that allows you to manage one or more Management Groups at the same time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To start, create a connection to&amp;nbsp;each Management Group you want to manage. For example...&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Connect directly to a Management Group&lt;/P&gt;
&lt;P&gt;New-ManagementGroupConnection mg1.redmond.corp.microsoft.com&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;# Connect to a Management Group that is a child tier of the current Management Group.&lt;/P&gt;
&lt;P&gt;$creds = Get-Credential&lt;/P&gt;
&lt;P&gt;Get-Tier | where {...} | New-ManagementGroupConnection -Credential:$creds&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Next, move to the root of the Monitoring drive so you can see the connections you have created.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Monitoring:\...\&amp;gt; cd \&lt;/P&gt;
&lt;P&gt;Monitoring:\&amp;gt; dir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's it! &lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;All operations from the root of the Monitoring drive will affect all connected Management Groups.&amp;lt;&amp;lt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case&amp;nbsp;you are wondering how useful this is&amp;nbsp;here are a few examples. &lt;/P&gt;
&lt;P&gt;1. Find a Monitoring Object across all of your Management Groups.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;dir -R | where {$_.Name -match "foobar"}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;2. Install a management pack across all connected&amp;nbsp;Management Groups.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Install-ManagementPack C:\ManagementPacks\CustomMP.xml&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;3. Get alerts across all connected Management Groups&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Alert ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;4. Get events across all connected Management Groups.&lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Get-Event ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and so on...&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most GET Cmdlets work the same way even though they are spanning multiple connections. Cmdlets that affect change may not work as expected and will usually fail because they are passed an object that is unique to one Management Group.&lt;/P&gt;
&lt;P&gt;BE CAREFUL!&amp;nbsp; Objects like ManagementPacks, Classes and Relationship Classes which are unique within one Management Group have the same identifier across all Management Groups and therefore can be inadvertently manipulated across multiple Management Groups when multiple connections exist. &lt;/P&gt;
&lt;P&gt;BE VERY CAREFUL! More than one connection to the same Management Group can be created with a different name making it is very easy to inadvertently run the same command against the same Management Group multiple times. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1409593" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Have your PowerShell and our Cmdlets too...</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2007/01/03/have-your-powershell-and-our-cmdlets-too.aspx" /><id>http://blogs.msdn.com/scshell/archive/2007/01/03/have-your-powershell-and-our-cmdlets-too.aspx</id><published>2007-01-03T10:34:00Z</published><updated>2007-01-03T10:34:00Z</updated><content type="html">&lt;H3&gt;Adding the Operations Manager Snapin&lt;/H3&gt;
&lt;P class=pbody&gt;As you may already know, the PowerShell is an extensible environment, as such we have tried to create a useful starting point for you by loading the Operations Manager Cmdlets and functions within a PowerShell environment named “Command Shell”. For those of you who need to customize the PowerShell experience the "Command Shell" may not meet your needs.&amp;nbsp;If you want access to Operations Manager Cmdlets from any PowerShell instance you must first load the Operations Manager snapin. Here is an example. 
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;Add-PSSnapin Microsoft.EnterpriseManagement.OperationsManager.Client&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;Before you can start using the Operations Manager Cmdlets you must&amp;nbsp;set the location to the root of the Operations Manager snapin. There are&amp;nbsp;several ways of working with a provider. I recommend you create a drive so you can easily work with multiple Operations Manager connections. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P class=code&gt;# Set the location to the root of the provider namespace. 
&lt;P class=code&gt;cd OperationsManagerMonitoring:: 
&lt;P class=code mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=code&gt;# or&lt;/P&gt;
&lt;P class=code&gt;# Create a drive that maps to the root of the provider namespace. 
&lt;P class=code&gt;New-PSDrive -Name: Monitoring -PSProvider: OperationsManagerMonitoring -Root: \ 
&lt;P class=code&gt;cd Monitoring:\&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;Now that you are working with the correct provider&amp;nbsp;you can create a connection to the Management Group you intend to manage. 
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;# Replace 'localhost' with the name of your server if connecting remotely.&lt;/P&gt;
&lt;P&gt;New-ManagementGroupConnection localhost&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cd localhost&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;Creating A Console File&lt;/H3&gt;
&lt;P class=pbody&gt;That was fairly easy but what if you want to automate these commands every time you start the PowerShell. That requires adding a startup script and/or a console file. I suggest creating a console file to begin with to make the management of snapins easier. 
&lt;P class=pbody&gt;Start by&amp;nbsp;creating a copy of the PowerShell shortcut.&amp;nbsp; 
&lt;P class=pbody&gt;Create a new console file by launching the new shortcut and running the following commands. 
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;Add-PSSnapin Microsoft.EnterpriseManagement.OperationsManager.Client 
&lt;P class=code&gt;Export-Console $home\myconsole&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;Close the PowerShell instance and open the properties of the new shortcut.&amp;nbsp;Add the following&amp;nbsp;as a parameter to powershell.exe in the Target field. 
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;-PSConsoleFile myconsole.psc1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;Adding A Startup Script&lt;/H3&gt;
&lt;P class=pbody&gt;Now launch the new PowerShell shortcut. You may notice that the Operations Manager startup banner is missing as well as the default connection and all of the Operations Manager functions. The startup banner and functions can also be included in the startup of your custom PowerShell instance by creating a startup script. &lt;/P&gt;
&lt;P class=pbody&gt;Start by creating a file called mystartup.ps1 located in $home&amp;nbsp;from within PowerShell. Add the following lines to the startup script to move to the Operations Manager installation directory.&lt;/P&gt;
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;$pf = (gc Env:\ProgramFiles) 
&lt;P class=code&gt;cd "$pf\System Center Operations Manager 2007"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;To add ONLY the Operations Manager functions add the following line to your script. If you decide to go this route you should also consider adding&amp;nbsp;commands to connect to the Management Group you itend to manage. 
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;.\Microsoft.EnterpriseManagement.OperationsManager.ClientShell.&lt;EM&gt;Functions&lt;/EM&gt;.ps1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;To add the Operations Manager functions, the default connection and the startup banner add the following line to your startup script. I suggest using this approach until you are familiar with Operations Manager connection Cmdlets. 
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;.\Microsoft.EnterpriseManagement.OperationsManager.ClientShell.&lt;EM&gt;Startup&lt;/EM&gt;.ps1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;Now you need to call the startup script from your PowerShell shortcut. Open the shortcut properties and add the following arguments at the end of the Target field. 
&lt;BLOCKQUOTE class=pbody&gt;
&lt;P class=code&gt;-NoExit .\mystartup.ps1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=pbody&gt;That’s it! Now you can fully customize your powershell startup experiance while still having immediate access to Operations Manager functionality.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1402209" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>What Time is it anyway?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2006/11/28/what-time-is-it-anyway.aspx" /><id>http://blogs.msdn.com/scshell/archive/2006/11/28/what-time-is-it-anyway.aspx</id><published>2006-11-28T04:58:00Z</published><updated>2006-11-28T04:58:00Z</updated><content type="html">&lt;FONT face=Arial size=2&gt;
&lt;P&gt;DateTime property values off of objects returned from the Operations Manager (OM) SDK are in UTC time. At the time of this writing the "Kind" property of these values is not populated. This may seem trivial or irrelevant but it raises some questions as to how Cmdlets designed to take DateTime values should treat values that do not specify the "Kind" property. Consider the following example. &lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;Monitoring:\localhost\Microsoft.SystemCenter.AllComputersGroup&lt;BR&gt;&amp;gt;&lt;B&gt;$time = [DateTime]::Now&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;$time&lt;BR&gt;&lt;B&gt;Monday, November 27, 2006 6:35:10 PM&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;$time.Kind&lt;BR&gt;&lt;B&gt;Local&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;New-MaintenanceWindow -startTime: ($time) -endTime: ($time.AddDays(1)) -reason: "ApplicationInstallation" -comment: "Testing DateTime.Now";&lt;/P&gt;
&lt;P&gt;&amp;gt;Monitoring:localhost\&amp;gt;Get-MaintenanceWindow MonitoringObjectId : 3c8ac4f3-475e-44dd-4163-8a97af363705&lt;/P&gt;
&lt;P&gt;StartTime : &lt;B&gt;11/28/2006 2:35:12 AM&lt;/B&gt;&lt;BR&gt;ScheduledEndTime : &lt;B&gt;11/29/2006 2:35:12 AM&lt;/B&gt;&lt;BR&gt;EndTime &lt;BR&gt;Reason : ApplicationInstallation&lt;BR&gt;Comments : testing DateTime.Now&lt;BR&gt;User : SMX\asttest&lt;BR&gt;LastModified : 11/28/2006 2:35:12 AM&lt;BR&gt;ManagementGroup : rogers01dmg&lt;BR&gt;ManagementGroupId : 4e2f3ced-4b50-3939-edac-b9dfabe5effa &lt;BR&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Clearly some conversion has occurred here. The value from [DateTime]::Now is in local time. The New-MaintenanceWindow Cmdlet converts the local time to UTC time before creating the maintenance window. All is good as the maintenance window will occur at the local time specified by the user. If you try the same example by specifying a string value for the DateTime parameters you get a different result. Consider the following example where the user is working in the PST time zone. &lt;/P&gt;
&lt;BLOCKQUOTE class=code&gt;
&lt;P&gt;&amp;gt;&lt;B&gt;[DateTime] $time = "11/28/2006"&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;&amp;gt;$time&lt;BR&gt;&lt;B&gt;Monday, November 28, 2006 12:00:00 AM&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;&amp;gt;$time.Kind&lt;BR&gt;&lt;B&gt;Unspecified&lt;/B&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;New-MaintenanceWindow -startTime: $time -endTime: ($time.AddDays(1)) -reason: "ApplicationInstallation" -comment: "Testing DateTime string conversion"; &amp;gt;Monitoring:localhost\&amp;gt;Get-MaintenanceWindow&lt;BR&gt;MonitoringObjectId : 3c8ac4f3-475e-44dd-4163-8a97af363705&lt;BR&gt;StartTime : &lt;B&gt;11/28/2006 12:00:00 AM&lt;BR&gt;&lt;/B&gt;ScheduledEndTime : &lt;B&gt;11/29/2006 12:00:00 AM&lt;/B&gt;&lt;BR&gt;EndTime :&lt;BR&gt;Reason : ApplicationInstallation&lt;BR&gt;Comments : testing DateTime.Now&lt;BR&gt;User : SMX\asttest&lt;BR&gt;LastModified : &lt;B&gt;11/28/2006 2:40:00 AM&lt;/B&gt;&lt;BR&gt;ManagementGroup : rogers01dmg&lt;BR&gt;ManagementGroupId : 4e2f3ced-4b50-3939-edac-b9dfabe5effa &lt;BR&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Great, the time value specified is the time value that is returned. All is good, or so it seems. There is a problem. The time is understood to be UTC time to the server that determines when the maintenance window starts and stops. In this case the maintenance window is going to start on 11/27/2006 at 2 PM PST. This is not what the user intended in this case. This same problem also occurs when using a DateTime value off of an SDK object to specify the parameter of type DateTime on the OM Cmdlets. If you are confused, try to remember the following guidelines. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Always specify the DateTime.Kind property. &lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;[DateTime]::Now and Get-Date specify the DateTime.Kind for you. &lt;/LI&gt;
&lt;LI&gt;String conversion as in, "11/27/2006", does not specify the DateTime.Kind property. &lt;/LI&gt;
&lt;LI&gt;Objects returned from the OM SDK do not specify the DateTime.Kind property. &lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;DateTime property values off of objects returned from the OM SDK are in UTC time. &lt;/LI&gt;
&lt;LI&gt;DateTime values passed as parameters to OM Cmdlets which do not specify the "Kind" property will be treated as UTC time. &lt;/LI&gt;
&lt;LI&gt;DateTime values passed as parameters to OM Cmdlets in local time will be converted to UTC time. &lt;/LI&gt;&lt;/OL&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1163662" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry><entry><title>Getting Started</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/scshell/archive/2006/09/28/getting-started.aspx" /><id>http://blogs.msdn.com/scshell/archive/2006/09/28/getting-started.aspx</id><published>2006-09-29T00:21:00Z</published><updated>2006-09-29T00:21:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915776" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915776"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Overview&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915777" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915777"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Resources&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915778" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915778"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Starting the System Center Command Shell&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915779" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915779"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Connecting To a Management Group&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915780" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915780"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Administration&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;3&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915781" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915781"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Agent Management&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;3&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915782" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915782"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Computer Maintenance&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;4&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915783" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915783"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Default Settings&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;4&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915784" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915784"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;User Roles&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;4&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915785" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915785"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Authoring&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915786" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915786"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Management Packs&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915787" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915787"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Rules&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc1 style="MARGIN: 0in 0in 0pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915788" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915788"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Monitoring&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915789" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915789"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Navigation and Scoping&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915790" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915790"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Operational Data&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;6&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoToc2 style="MARGIN: 0in 0in 0pt 10pt; tab-stops: right dotted 449.5pt"&gt;&lt;A href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915791" mce_href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=Posts&amp;amp;sectionid=7243&amp;amp;postid=776079#_Toc142915791"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-no-proof: yes"&gt;Managing Alerts&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;&lt;SPAN style="mso-tab-count: 1 dotted"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; mso-no-proof: yes; text-underline: none; mso-hide: screen"&gt;7&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=5&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/H1&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915776 name=_Toc142915776&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Overview&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;This document is intended to help users familiar with PowerShell to start using the commands provided by the System Center Operations Manager Command Shell. This document looks at common scenarios and provides examples and tips for each scenario.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;??? – Technical detail that is not necessary to continue reading but maybe useful.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;!!! – Warning that the information must be read and followed as it pertains to the rest of the guide.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;[ ]&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; – A replacement parameter is required that you must specify.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915777 name=_Toc142915777&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Resources&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;This document barely scratches the surface of the functionality provided by Operations Manager Command Shell. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;To learn more use the online help and the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-Help&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command. To see all available Operations Manager commands use the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-OperationsManagerCommand&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;If you need help getting started using the PowerShell read the “&lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:Street w:st="on"&gt;&lt;st1:address w:st="on"&gt;Getting St&lt;/st1:address&gt;&lt;/st1:Street&gt;arted Guide” included with PowerShell. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;You find out more about PowerShell&amp;nbsp;here…&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;A class="" title=http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target=_blank mce_href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx"&gt;http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;You can download&amp;nbsp;PowerShell&amp;nbsp;from here…&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;A class="" title=http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx" target=_blank mce_href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx"&gt;http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-bidi-theme-font: minor-bidi"&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;!!! Please send your questions and comments to the SDK/Operations Manager Command Shell news group &lt;SPAN style="COLOR: green"&gt;microsoft.beta.opsmgr.sdk.powershell&lt;/SPAN&gt; available on &lt;SPAN style="COLOR: green"&gt;betanews.microsoft.com&lt;/SPAN&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915778 name=_Toc142915778&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Starting the &lt;/FONT&gt;&lt;FONT size=5&gt;&lt;FONT face=Arial&gt;&lt;st1:place w:st="on"&gt;&lt;st1:PlaceName w:st="on"&gt;&lt;SPAN style="mso-bookmark: _Toc142915778"&gt;System&lt;/SPAN&gt;&lt;/st1:PlaceName&gt;&lt;SPAN style="mso-bookmark: _Toc142915778"&gt; &lt;st1:PlaceType w:st="on"&gt;Center&lt;/st1:PlaceType&gt;&lt;/SPAN&gt;&lt;/st1:place&gt;&lt;SPAN style="mso-bookmark: _Toc142915778"&gt; Command Shell&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;The System Center Command Shell is accessible from the System Center UI Console as well as the Start menu. Use the right-click context menu in the UI Console to launch a Operations Manager Command Shell that sets the location to the target object. Use the Start-&amp;gt;Programs-&amp;gt;&lt;st1:place w:st="on"&gt;&lt;st1:PlaceName w:st="on"&gt;System&lt;/st1:PlaceName&gt; &lt;st1:PlaceType w:st="on"&gt;Center&lt;/st1:PlaceType&gt;&lt;/st1:place&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;!!! - The remainder of this document assumes that you have an open Operations Manager Command Shell. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;??? -The Operations Manager Shell is merely an extension to Monad/PowerShell, called a snapin. The Operations Manager Command Shell snapin can be loaded by any instance of Monad/PowerShell. The Operations Manager snapin is named “Microsoft.EnterpriseManagement.OperationsManager.ClientShell”. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-PSSnapin&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;–Registered&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; to list the registered snapins. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Add-PSSnapin&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; to add the Microsoft.EnterpriseManagement.Shell snapin to the current PowerShell instance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915779 name=_Toc142915779&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Connecting To a Management Group&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;!!! - The following examples use a fictitious topology containing a Root Management Server with the name ‘computer1’ and computers with names ‘computer2’ and ‘computer3’ in a domain named ‘MyDomain’.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;By default a connection to a Management Group is created when starting the Operations Manager Command Shell. Connections are made to the Root Management Server of a Management Group. The startup procedure of the Operations Manager Command Shell sets the current location to the root of the default connection.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This is also referred to as the root of the instance space. Here is an example of the Operations Manager Command Shell startup prompt.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;In the rare case when you need to change the connection or connect to more than one Management Group you can use the &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;New-ManagementGroupConnection&lt;/SPAN&gt;&lt;FONT face=Arial&gt; Cmdlet. The &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;New-ManagementGroupConnection&lt;/SPAN&gt;&lt;FONT face=Arial&gt; Cmdlet can create a connection to the Root Management Server in a Management Group. Here is an example of using the &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;New-ManagementGroupConnection&lt;/SPAN&gt;&lt;FONT face=Arial&gt; Cmdlet.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\&amp;gt; New-ManagementGroupConnection &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;-ConnectionString: [Root Management Server Name]&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial"&gt;&lt;FONT face=Arial&gt;Once you have created the connection you need to move to the root of the of that connection. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-ChildItem&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial"&gt;&lt;FONT face=Arial&gt; to determine the names of the root items of the instance space.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial"&gt;&lt;FONT face=Arial&gt;Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Set-Location&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial"&gt;&lt;FONT face=Arial&gt; to move to the root of the connection. Here is an example…&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-ChildItem&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;PathName&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;: localhost&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;ManagementGroup&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;: computer1&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;ManagementServerName : localhost&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;Drives&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;: {}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Set-Location localhost&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;??? - You can also use the &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;cd&lt;/SPAN&gt;&lt;FONT face=Arial&gt; alias and tab completion to select the connection. You can then use the &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;dir&lt;/SPAN&gt;&lt;FONT face=Arial&gt; alias to list items at the current location.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915780 name=_Toc142915780&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Administration&lt;/FONT&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&lt;FONT face=Arial size=5&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/H1&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915781 name=_Toc142915781&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Agent Management&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;After installing Operations Manager your first task is to discover and deploy agents on the computers you want to manage. The Operations Manager Command Shell provides you with&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;the ability to perform computer discovery as well as device discovery. Each agent computer must be targeted to at least one Management Server within a Management Group. Depending on your configuration you may have more than one Management Server therefore you must first decide which Management Server to which you would like the new agent computers to report. This can be done by calling &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-ManagementServer&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;. Once you have decided which management server you want to use you must store it in a variable so that it can be passed to the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Install-Agent&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command for deploying the agent to a computer. Let’s take a look at this in more script centric terms. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;# Get the Root Management Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$managementServer = Get-ManagementServer -Root: $true&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;# Create the discovery configuration for computer2 and computer3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$discoConfig = New-WindowsDiscoveryConfiguration &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-ComputerName: computer2, computer3&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;# Discover the computers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$discoResult = Start-Discovery &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-ManagementServer: $managementServer&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-WindowsDiscoveryConfiguration: $discoConfig&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;# Install an agent on each computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Install-Agent &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-ManagementServer: $managementServer &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-AgentManagedComputer: $discoResult.CustomMonitoringObjects&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;The first step is to get the desired management server. In this example the same management server will perform discovery, agent installation and will act as the Root Management Server for both agents.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The second step creates the discovery configuration used to define the type of discovery to perform. The third step starts discovery and blocks until it completes. The final step installs an agent on the discovered computers. This process is not for the faint of heart but can be easily automated with a &lt;st1:place w:st="on"&gt;Po&lt;/st1:place&gt;werShell function or script.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;Once the installation is complete a pending action is created for each agent. The pending action allows for a short period of time before the agent is added to Operations Manager. If you want to complete the process immediately you can approve the pending actions for computer1 and computer2 by using the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Approve-AgentPendingAction&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command. If on the other hand you change you mind and you don’t want the computers to be managed then run the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Reject-AgentPendingAction&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; Cmdlet.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-AgentPendingAction | where {$_.AgentName –like ‘computer*’} | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Approve-AgentPendingAction&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;Once the pending actions are approved you can use the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-Agent&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command to see that computer2, and computer3 are now managed. Prior to approving the pending action computer2 and computer3 may not be returned from the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-Agent &lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;If for some reason you no longer wish to manage a computer the agent can be uninstalled by running the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Uninstall-Agent &lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-Agent | where {$_.RootName –like ‘computer*’ } | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Uninstall-Agent&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915782 name=_Toc142915782&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Computer Maintenance&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;Once a computer is managed by Operations Manager, a maintenance window must be defined before taking the computer offline for maintenance otherwise alerts may be generated when the computer is offline. The Operations Manager Command Shell provides commands for getting and defining a maintenance window. Keep in mind that a maintenance window can be defined for entities hosted by a computer as well as the computer itself. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;The following example illustrates the use of the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;New-MaintenanceWindow &lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$computer = Get-Agent | where {$_.Name -like ‘computer*’} &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$computer.HostComputer | New-MaintenanceWindow &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-StartTime: ‘5/22/2006 00:30’ &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-EndTime: ‘5/22/2006 12:30’ &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;-Comment: "Install security patch"&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;If the existing maintenance window needs to be modified use the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Set-MaintenanceWindow&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command. You can not modify the start time for a maintenance window once it has been defined using the Command Shell. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;New-MaintenanceWindow&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; to define an alternate maintenance window if the start time must be changed. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-MaintenanceWindow&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; to see the state of the current maintenance window. Use the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;InMaintenanceMode&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; property to determine if an object is in maintenance mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$computer.HostComputer | Get-MaintenanceWindow&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: Courier; mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$computer.HostComputer | Set-MaintenanceWindow -EndTime: "5/24/2006 12:30"&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915783 name=_Toc142915783&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Default Settings&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;All of the configurable default settings used by Operations Manager are configurable using the Command Shell. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-DefaultSetting&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; and &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Set-DefaultSetting&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; to manage default settings such as the Agent Heartbeat Interval.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Set-DefaultSetting -Name: Agent\Heartbeats\Interval -Value: 50&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-DefaultSetting | where {$_.Name –eq ‘Agent\Heartbeats\Interval’}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915784 name=_Toc142915784&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;User Roles&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;User roles are an integral mechanism for managing access to Operations Manager functionality in a role based fashion. To see the available user roles use the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-UserRole&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command. Here is an example of adding a user named ‘tomg’ to the Operations Manager Operators user role.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$userRole = Get-UserRole | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;where {$_.Name –eq ‘OperationsManagerReadOnlyOperators’}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$userRole.Users.Add(‘tomg’)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$userRole.Update()&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;The following example searches for all user roles in which ‘tomg’ is a member.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-UserRole | where {$_.Users –match ‘tomg’}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915785 name=_Toc142915785&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Authoring&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915786 name=_Toc142915786&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Management Packs&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;The monitoring extensibility of Operations Manager is built on Management Packs which can be installed, uninstalled and exported. The following example demonstrates commands for managing Management Packs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;$myMPs = Get-ManagementPack | where {$_.Name –match “MyMP”}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Install-ManagementPack –FilePath: c:\MyMP.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-ManagementPack | where {$_.Name –match “MyMP”} | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Uninstall-ManagementPack&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;Management Packs can be exported and then installed on another Management Group. This feature is useful if you use a staging server to test Management Pack changes. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Export-ManagementPack&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; and specify the directory into which you want to the Management Pack exported.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-ManagementPack | where {$_.Name –match “MyMP”} | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Export-ManagementPack –Path: “c:\MyMPs”&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915787 name=_Toc142915787&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Rules&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;It is sometimes useful to disable a rule when planned changes occur to a topology or application in which Monitoring Objects of the same Monitoring Class are affected. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Enable-Rule&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; and &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Disable-Rule&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; for managing rules that are NOT contained in a sealed Management Pack. Use &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-Rule&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; for finding rules in any installed Management Pack.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-Rule | where {$_.Name –match “MyRule”} | Disable-Rule&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;Get-Rule | where {$_.Name –match “MyRule”} | Enable-Rule&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915788 name=_Toc142915788&gt;&lt;/A&gt;&lt;FONT face=Arial size=5&gt;Monitoring&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915789 name=_Toc142915789&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Navigation and Scoping&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;SC Operations Manager uses an abstraction called a MonitoringObject that allows applications and services as well as computers to be similarly modeled for both monitoring and management purposes. The Command Shell heavily utilizes the MonitoringObject abstraction and its type object, MonitoringClass, to allow you to retrieve and filter monitoring and management information. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;By default the Operations Manager Command Shell sets the current PowerShell provider to the OperationsManagerMonitoring provider which displays the location of the MonitoringObject membership relationship space starting with a connection to a Root Management Server. Here is an example where ‘computer1’ represents the name of a Root Management Server.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\computer1&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;In addition to computers, services and applications a MonitoringObject can represent a logical group within Operations Manager. Use the intrinsic &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-ChildItem&lt;/SPAN&gt;&lt;FONT face=Arial&gt; command to list the root Monitoring Objects within a connection. Much like the PowerShell’s File System provider the OpsMgr provider is hierarchical, therefore most of the read commands used with the File System provider also work with the OpsMgr provider.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\computer1&amp;gt;Get-ChildItem&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;In addition to the intrinsic provider commands of the PowerShell most of the Operations Manager Command Shell commands are aware of the current location of the OpsMgr provider. Moreover all of the Operations Manager Command Shell commands that are aware of the current OpsMgr provider location can work from the root of the provider path thereby allowing you to run commands across multiple connections. The following example gets all of the top level MonitoringObjects across all available connections to a Root Management Server.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\&amp;gt;Get-ChildItem&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;!!! Be careful. There is no ‘undo’ feature in the PowerShell therefore any commands that affect change should be used with extreme caution especially when run from the root of the OpsMgr provider. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;Just as moving to the root of the path increases the scope of a command, moving down the path to a specific MonitoringObject decreases the scope of the command. The following command gets the alerts for a specific Monitoring Group.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost\Microsoft.SystemCenter.AllComputersGroup&amp;gt;Get-Alert&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;??? Use the &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;cd&lt;/SPAN&gt;&lt;FONT face=Arial&gt; alias and tab completion to quickly change the provider location.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;In addition to the OpsMgr provider the Operations Manager Command Shell also includes the &lt;/FONT&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Get-MonitoringObject &lt;/SPAN&gt;&lt;FONT face=Arial&gt;command that allows you to find a MonitoringObject by MonitoringClass or by ID. Here we are getting all MonitoringObjects that contain the word ‘computer’ in the class name regardless of the group in which the MonitoringObject is contained.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\&amp;gt;Get-MonitoringClass | where {$_.Name –match “computer” } | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;Get-MonitoringObject &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915790 name=_Toc142915790&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Operational Data&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;SC Operations Manager monitoring is primarily driven by operational data for each MonitoringObject such as events, state and performance data. Operational data can be retrieved for each MonitoringObject using the Operations Manager Command Shell. MonitoringObjects that represent a group or containment entity typically aggregate or coalesce the operational data for related MonitoringObjects. Here are a few examples use the operational data commands.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt;Get-Alert | where {$_.Severity –eq “Critical”} &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt;Get-State&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt; Get-Event | where {$_.Number –gt 30000}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt;Get-PerformanceCounter | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;where {$_.Name –match “Processor Time”} | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;Get-PerformanceCounterValue &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;–StartTime: “5/23/2006” &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT size=2&gt;–EndTime: “5/24/2006”&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt;Get-Monitor&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 12pt 0in 3pt"&gt;&lt;A class="" title=_Toc142915791 name=_Toc142915791&gt;&lt;/A&gt;&lt;EM&gt;&lt;FONT face=Arial&gt;Managing Alerts&lt;/FONT&gt;&lt;/EM&gt;&lt;/H2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt;At some point while using Operations Manager you will see one or more Alerts for a Monitoring Object. In order to reset the state of the MonitoringObject the alert must be resolved. The Operations Manager Command Shell provides the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;Resolve-Alert&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Arial&gt; command for resolving one or more alerts. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Here is an example.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;PS Monitoring:\localhost&amp;gt; Get-Alert | &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=2&gt;where {$_.ResolutionState –eq “New” –and $_.Owner –eq “me” } | Resolve-Alert “resolving all new alerts” &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"&gt;&lt;o:p&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=776079" width="1" height="1"&gt;</content><author><name>scshell</name><uri>http://blogs.msdn.com/members/scshell.aspx</uri></author></entry></feed>