Identify VDI workers that blue screened in vSphere

Typical recommendation in VDI is to turn off OS Memory dump collection and auto reboot on the bluescreen. Optimization tools from citrix/vmware take care of this setting automatically. But this masks the events if there a real issue with master image. Following PowerShell snippet will provide information if any of the worker vm’s have crashed.

Import-Module vmware.powercli
Connect-VIServer vcenterserver
Get-ViEvent -Username User | Where {$_.FullFormattedMessage -like "*Guest operating system has crashed." -AND $_.CreatedTime -gt (Get-Date).AddDays(-1)} | Select CreatedTime,FullFormattedMessage

Leave a comment

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux