Home > SCOM 2012, System Center Family > Disable-SCOMRule


We now have the capability to disable SCOM Rules using PowerShell.


$MS=”XXXX” $MPName=”XXXX” $ClassName=”Windows Server 2008 R2 Operating System” $RuleName= “Performance registry corruption”

if ((Get-PSSnapin | Where-Object {$_.Name -eq ‘Microsoft.EnterpriseManagement.OperationsManager.Client’}) -eq $null) { Write-Host Write-Host “File loaded.” Write-Host “Initializing shell for operations manager…” Write-Host “Add Microsoft.EnterpriseManagement.OperationsManager.Client snap in.” Add-PSSnapin Microsoft.EnterpriseManagement.OperationsManager.Client -ErrorAction SilentlyContinue -ErrorVariable Err

if ($Err) { $(throw write-Host $Err) } }

if ((Get-ManagementGroupConnection | Where-Object {$_.ManagementServerName -eq $MS}) -eq $null) { Write-Host “Connect to Management Serve

  1. No comments yet.
  1. March 7, 2012 at 4:26 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: