I need to know when someone puts a Server or Group of Servers in Maintenance Mode.
Thinking of throwing this on a Dashboard where the team can see servers going in MM mode and also would be ideal to setup alert on this as well.
Preferably with the following values:
Name of Server/s
Anyone has this already setup that they can share or provide me with a Powershell that they might have that works.
You can create a tile scoped to the class “Windows Server” and use the Criteria:
InMaintenanceMode = 1
This property is not available for groups and you can’t grab the maintenance mode details (who/when/comment).
For this, perhaps a PowerShell task is the best option, where you can return the results from get-scommaintenancemode cmdlet.
As for alerting, I’m fairly sure you could use a PowerShell alert rule to do the same.