Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: Script to Re-Enable Alarms in vCenter

$
0
0

Could you please try:

 

For all hosts

$alarmMgr = Get-View AlarmManager

Get-VMHost | foreach-object{

$alarmMgr.EnableAlarmActions($_.Extensiondata.MoRef,$true)

}

 

For host starting with D.

$alarmMgr = Get-View AlarmManager

Get-VMHost D* | foreach-object{

$alarmMgr.EnableAlarmActions($_.Extensiondata.MoRef,$true)

}

 

(I am not able to test the script right now)


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>