When a Windows system crashes, it typically reboots immediately. This is called “Automatic Reset Capability”, and with this one-liner you can check whether your machine supports it:

Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object -Property Name, AutomaticResetCapability   

Whether or not the system actually performs an automatic reboot is controlled by “AutomaticResetBootOption”:

Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object -Property Name, AutomaticResetBootOption 

If you own Administrator privileges, you can even change this setting. To turn off automatic reset booting, run this:

Set-CimInstance -Query 'Select * From Win32_ComputerSystem' -Property @{AutomaticResetBootOption=$false}  

For more information on the WMI class Win32_ComputerSystem, visit http://powershell.one/wmi/root/cimv2/win32_computersystem.




Twitter This Tip! ReTweet this Tip!

Anonymous