How to find as when the server was last shutdown and when it was powered on again

lianne143 used Ask the Experts™

We have windows 2008 server and I want to find out as when the server was last shutdown and when it was powered on again.

Any help would be great.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Gaurav SinghSolutions Architect
you can check the event logs on the server, but for that you need to first power on the server and check the system event logs.
System Analyst
trough event viewer

Event ID 6005: “The event log service was started.” This is synonymous to system startup.
Event ID 6006: “The event log service was stopped.” This is synonymous to system shutdown.
Event ID 6008: "The previous system shutdown was unexpected." Records that the system started after it was not shut down properly.
Event ID 6009: Indicates the Windows product name, version, build number, service pack number, and operating system type detected at boot time.
Event ID 6013: Displays the uptime of the computer. There is no TechNet page for this id.
Add to that a couple more from the Server Fault answers listed in my OP:

Event ID 1074: "The process X has initiated the restart / shutdown of computer on behalf of user Y for the following reason: Z." Indicates that an application or a user initiated a restart or shutdown.
Event ID 1076: "The reason supplied by user X for the last unexpected shutdown of this computer is: Y." Records when the first user with shutdown privileges logs on to the computer after an unexpected restart or shutdown and supplies a reason for the occurrence.
Leo FarnsworthSimplifying your collaboration experience

Check event logs for Event I'Ds 6005, 6009, and 6013 to see these types of events . If you just want to know the last time it was booted up, you can just open the task manager on the server and look at the "Performance" tab, which should show you the systems uptime.
Tahir QureshiSystem Analyst
Windows Server 2008 RC2 – and all the previous versions – gives the user the option to setup a native e-mail alert: all we need to do is to right-click the log file/event where we want to attach the notification upon and select the Attach a task to this log/event… command: then, in the Action panel, choose Send an e-mail and fill up the required fields: sender, address, SMTP server info,etc.


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial