Bulk Creating Overrides in VSAE

At work, in one of the OpsMgr 2007 management groups, we have 3 sets of Australian state / territory based computer groups. Let’s say they are App-A, App-B, and All computers groups. so each state has 3 computer groups (i.e. NSW App-A, NSW App-B and NSW All Computers). By default, for computer groups, the Health Rollup Policies for the Health Rollup dependency monitors are configured to use the worst state of any member: Yesterday, there was a requirement to change the health rollup policies for these groups from the “Worst state of any member” to a percentage value of 95%

Continue reading

Finding OpsMgr Management Group Installation Date Using PowerShell

As part of what I’m working on at the moment, I need to find out when the OpsMgr 2012 management group was initially installed using PowerShell (the installation time of the first management server). To do so, I can either use the OpsMgr SDK or the OperationsManager PowerShell module. I’ve developed below scripts to run locally on a management server: Using SDK: [sourcecode language=”PowerShell”] $MgmtServer = $Env:COMPUTERNAME #Connect to SCOM management group [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.EnterpriseManagement.OperationsManager.Common") | Out-Null [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.EnterpriseManagement.OperationsManager") | Out-Null $MGConnSetting = New-Object Microsoft.EnterpriseManagement.ManagementGroupConnectionSettings($MgmtServer) $MG = New-Object Microsoft.EnterpriseManagement.ManagementGroup($MGConnSetting) $MG.GetManagementGroupMonitoringObject() [/sourcecode] TimeAdded property indicates the MG initial installation date. Using OperationsManager PowerShell module:

Continue reading
%d bloggers like this: