Good Day.
Today I am sharing with you the way to know who restarted your server 2012 R2. In big organizations there might be hundreds of servers that are up and running however restart jobs might be needed and maintenance windows should be scheduled. suppose that you receive a comment from an application owner saying that his server has been restarted and he needs to know who did the restart job or it was by accident.
There is something called as Shutdown event tracker. This will allow the admins to track why a user initiated shutdown or a restart. It also gathers the reason why the users restarted or shutdown the computer. More info about it is documented here.
To find out who restarted windows server, log in to the server. The below steps work on Windows Server Server 2012 R2. Launch the Event Viewer (type eventvwr in run). In the event viewer console expand Windows Logs. Click on System and in the right pane click Filter Current Log.
In the Filter Current log box, type 1074 as the event ID. This will filter the events and you will see events only with ID 1074.
We can now see the event with ID 1074.
Double click the recent event. In the event properties box, you can see who initiated the restart of server.
The process C:\Windows\Explorer.EXE (SRV00) has initiated the restart of computer SRV00 on behalf of user POP\hisham.mezher for the following reason: Hardware: Installation (Unplanned)
Reason Code: 0x4010002
Shutdown Type: restart
Comment:
Click Close.
Regards.
Hisham Mezher