How to check when windows server was restarted?

Open Event Viewer

01.

Start by accessing the Event Viewer. Press Windows + R, type eventvwr.msc, and press Enter.

Navigate to System Logs

02.

In the Event Viewer, expand the Windows Logs folder, and select System.

Filter for Event ID 6005 and 6006

03.

Click Filter Current Log on the right side menu. In the filter dialog, type 6005, 6006 in the field. Event ID 6005 indicates the Event Log service was started, and Event ID 6006 indicates it was stopped.

Review the Logs

04.

Examine the filtered logs to see the restart times. They are listed in chronological order.

Use System Information Tool

05.

Alternatively, press Windows + R, type msinfo32, and press Enter. This opens the System Information tool.

Check System Uptime

06.

In System Information, look for System Uptime under the System Summary section. This will show you the time since the last restart.

Utilize Command Prompt

07.

Open Command Prompt by pressing Windows + R, typing cmd, and pressing Enter.

Run the Command

08.

In the Command Prompt, type systeminfo | find "System Boot Time" and press Enter. This command will display the last boot time.

Check with PowerShell

09.

Open PowerShell by pressing Windows + R, typing powershell, and pressing Enter.

Execute the PowerShell Command

10.

In PowerShell, type Get-EventLog -LogName System -Newest 1 -InstanceId 6005 and press Enter. This will retrieve the most recent event of the Event Log service starting, indicating the last restart.