Tag Archives: get-datastorealarms

PowerCLI: Getting datastore alarms

Next in the series on getting alarms is getting datastore alarms. Again, the code is pretty similar: $Datastores = Get-View -ViewType Datastore -Property Name,OverallStatus,TriggeredAlarmstate $FaultyDatastores = $Datastores | Where-Object {$_.TriggeredAlarmState -ne "{}"}   $progress = 1 $report = @() if … Continue reading

Posted in PowerCLI, Powershell, VMware Tagged , , , , ,