How to check when the windows server is restarted?



You can check when a Windows server was last restarted using various methods. Here are a few approaches:

  1. System Event Log:

    • You can check the System Event Log using the Event Viewer to find information about system startup events. Look for Event ID 6005, which indicates that the Event Log service was started, marking the beginning of the system startup. Event ID 6006 indicates that the system has started successfully.
  2. Command Prompt:

    • Open a Command Prompt and run the following command:
      systeminfo | find "System Boot Time"
      
      This will display the date and time when the system was last booted.
  3. Task Manager:

    • Open Task Manager and go to the "Performance" tab. On the right side, you'll find the "Up time" section, which shows the duration the system has been running since the last restart.
  4. System Information:

    • Open the System Information tool by typing "msinfo32" in the Run dialog or the Start menu search. In the "System Summary" section, look for the "System Up Time," which indicates the time since the last restart.

Choose the method that best fits your preference or script automation needs. The PowerShell approach, in particular, provides a flexible way to retrieve and manipulate the relevant information programmatically.

Post a Comment

Previous Post Next Post