My System SCOM 2012 R2 UR9 I am working on a PowerShell script to be used later for maintenance mode start/stop based on Backups running.
The requirement is to identify the disks and the CPU and place these into MM. So far I have $Node = "<Name of a Windows Server>" $MonClass = get-SCOMClass | where-object {$_.Name -eq "Microsoft.Windows.LogicalDisk"} $ObjPool1 = get-SCOMClassInstance -Class $MonClass | where-object {$_.Path -match $Node} This works fine Example Output HealthState InMaintenance DisplayName ----------- ------------- ----------- Success False M: Success False C: Success False D: However I cannot find the corresponding class for the Windows CPU e.g. I want all the CPU's on a server. I have tried Microsoft.Windows.Server.2012.R2.OperatingSystem Microsoft.Windows.OperatingSystem And others but I cannot find the class that has the CPU objects within. Can anyone help please Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre Services t: +44(0)845 155 6556 ext: 4006 e: phakes...@sccis.net | w: www.scc.com<http://www.scc.com/> a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ