Here is a Powershell script to find out when is the last time computer clean shutdown

get-winevent -FilterHashtable @{ ProviderName = 'user32' ; id =1074 } -MaxEvents 1|ft -wrap

Example of run result

From

Leave a Reply

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