So we have some servers that are being changed to UTC time from the local time they are supposed to be set to - any template out or report to poll windows servers to get the time zone information or an alert when they are diff from EST etc ?
Hi there Fitzy,
You could use the System.TimeZone .Net Framework: [System.TimeZone]::CurrentTimeZone , wrapped into a PowerShell monitor.
I created one with a script body of:
$zone = [System.TimeZone]::CurrentTimeZone
Write-Host "Message:" $zone.StandardName $zone.DaylightName
Write-Host "Statistic: 0"
Which returns the timezone name and daylight savings in the Message.
The Statistic is a dummy, as my test failed without it.
Hope it helps,
Rich
Something like this?