Thursday 16 February 2023

PowerShell - See the last reason why a Windows shutdown / rebooted

 Get-EventLog -logname system | Where-Object {$_.EventID -eq 1074 -or $_EventID -eq 6008} | Select -first 1

No comments:

Post a Comment