Powershell – Get last Reboots Windows Server


#example
Get-WMIobject win32_ntlogevent -filter "(logfile='system') AND (EventCode='1074') and Message like '%restart%'" | select -first n

Leave a Reply

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