Your company's ad could live here and reach over 50,000 people a month!

Author: Scott Moss

OpsMgr 2007: How to backup the RMS Encryption Key command line

Part of a good backup strategy of an Operations Manager 2007 Environment would include backing up the Root Management Servers Encryption key after any changes or additions are made to the Run As accounts. The Root Management Server Encryption Key stores the Run As account information in the Management Group. In order to backup the RMS encryption key you will need to copy the Operations Manager 200...

OpsMgr 2007 – Get-Alert Examples

By request, a user wanted a SQL query to display the following information: Managed computer, Alert description and Alert severity. Well its much easier to just open up PowerShell and get this information, and slap it into a csv fie. get-alert | select-object NetbiosComputerName, Description, Severity | Export-Csv -path “c:\alerts.csv“

Easy HealthService restart one liner

I run into this all the time where I would like to restart a service but did not want to open manage my computer to click the restart button, nor did I want to type two different net commands at two different times. Well Steve Rachui gave me this one day after restarting services manually a couple of dozen times. Just type this on one liner. Net Stop Healthservice && Net Start Healthservic...

Operations Manager 2007 Percent Free Disk Space Monitor

Monitoring free disk space in a large Operations Manager environment can be difficult. Different support teams could have different threshold requirements, and server builds between teams can very. Each of these issues has their own unique challenges. To work with these challenges in MOM 2005 modifications were made to the MOM 2005 Script – Microsoft Windows Storage State Monitoring Script –...

Operations Manager 2007 PowerShell cmdlet reject-agentpendingaction

The reject-agentpendingaction cmdlet rejects the specified agent pending action. Use the get-agentpendingaction cmdlet and pipe its results to the reject-agentpendingaction cmdlet to reject the specified agent pending action. The example in the reject-agentpendingaction help shows how to reject all agent pending actions. What if you only want to reject a specific type of agent pending action type?...

SCOM PowerShell cmdlet New-ManagementGroupConnection

How would one manage two different management groups from one PowerShell console? This is when you would need to use the two cmdlets New-ManagementGroupConnection and Set-Location. You have two different management groups, PROD and TEST. You open your PowerShell console, and it opens to PROD, but you want to work with the TEST management Group, do the following: PS Monitoring:\PRODRMS >new-mana...

OpsMgr PowerShell: Close all open alerts generated by a rule

By request I came up with the following PowerShell one liner to close all open alerts that were generated by a Rule. Reason being that if one closes an alert generated by a monitor, that alert will not be fired off again until the computers health is recalculated. To find alerts that are generated by a rule I use the IsMonitorAlert property from the get-alert commandlet. IsMonitorAlert is either T...

Operations Manager 2007 PowerShell Cmdlet Get-Agentpendingaction mini-reports

To get a list of server names and what they are pending about i.e. AgentPendingActionType (this can be long depending on how many agent pending actions are in your environment) get-agentpendingaction | sort-object AgentName | Select-object AgentName, AgentPendingActionType | format-table –auto To get a list of servers whose status in AgentPendingActionType is ‘UpdateFailed’ get-agentpendingaction ...

Operations Manager PowerShell cmdlet: Get-Alert mini reports

To get a report of Top closed alerts. >get-alert -criteria `ResolutionState = "255"’ | Group-Object Name |Sort -desc Count | select-Object -first 5 Count, Name |Format-Table -auto Count Name —– —- 105 Microsoft Windows Internet Information Services 2003 SMTP Virtual Server… 91 Monitor Health Service Heartbeat 80 WMI Probe Module Failed Execution 71 Servic...

OpsMgr 07 PowerShell: More on the fly alert reports

A few quick and dirty reports to find out what open alerts are or are not created by a monitor. >get-alert -criteria ‘ResolutionState = ”0” AND IsMonitorAlert = ”True”’|Group-Object Name |Sort -desc Count | select-Object Count, Name |Format-Table –auto >get-alert -criteria ‘ResolutionState = ”0” AND IsMonitorAlert = ”False”...

Operations Manager 2007 PowerShell cmdlet approve-agentpendingaction

The approve-agentpendingaction cmdlet approves the specified agent pending action. The approve-agentpendingaction cmdlet is works much like the reject-agentpendingaction in that the cmdlet is expecting to have data piped from the get-agentpendingaction cmdlet. Again the example in help shows how to do approve all agent pending actions. How to approve only the agents whose status is "RepairFai...

Operations Manager PowerShell cmdlet: Get-Alert examples

A few more examples of the Get-Alert cmdlet for Operations Manager 2007. To get a count of all Informational alerts: >(get-alert -criteria ‘Severity = ”0”’).count 1150 To get a count of all Warning alerts: >(get-alert -criteria ‘Severity = ”1”’).count 3767 To get a count of all Critical alerts: >(get-alert -criteria ‘Severity = ”...

  • 1
  • 2