Jump to content

Any way to check windows logs for shutdowns?

So I run a server on my PC and sometimes I come back and see my PC is closed. Can I check some kind of logs or PC shutdowns in windows? Thanks

Link to comment
Share on other sites

Link to post
Share on other sites

If its Windows 8.x/Server 2012 or higher just right-click start button, click Event Viewer (if other version of Windows just type Event Viewer in search).

 

Navigate Windows Logs -> System then select "Filter Current Log" then put 1074 into the ID text box, click OK and it list all shutdown/restart events.

 

post-385-0-11211100-1432759963.png

 

post-385-0-74800900-1432759971.png

 

EDIT: If you would like to take this even further you can make Windows display a message box at user logon that there was a shutdown/restart. I'll edit again with instructions in a few minutes.

 

Okay, so for the message prompt at logon follow these instructions.

 

Step 1: Open Notepad, write exactly that text and save it as sd.vbs. Make sure when you save, the save as file type is "All Files (*.*)" otherwise it'll save it as sd.vbs.txt.

post-385-0-13025600-1432761448.png

 

Step 2: Search for/open Task Scheduler. Click Create Basic Task.

post-385-0-93260600-1432761565.png

 

Step 3: Give the task a name.

post-385-0-12981100-1432761680.png

 

Step 4: Select "When I log on".

post-385-0-39073500-1432761731.png

 

Step 5: Select "Start a program".

post-385-0-50629800-1432761773.png

 

Step 6: Navigate to the sd.vbs file you created earlier.

post-385-0-07022000-1432761810.png

 

Step 7: Click "Finish" and close Task Scheduler.

post-385-0-98380500-1432761847.png

 

Now every time you log on from a shutdown/restart you'll see this message box below.

post-385-0-61688600-1432761931.png

CPU: i7 4790K  RAM: 32 GB 2400 MHz  Motherboard: Asus Z-97 Pro  GPU: GTX 770  SSD: 256 GB Samsung 850 Pro  OS: Windows 8.1 64-bit

Link to comment
Share on other sites

Link to post
Share on other sites

You can view system and application logs in the event viewer. I would also check your power options to ensure the machine isn't just set to go to sleep.

Link to comment
Share on other sites

Link to post
Share on other sites

You can view system and application logs in the event viewer. I would also check your power options to ensure the machine isn't just set to go to sleep.

 

Yeah checked that after, it seems to be that, was set to sleep 30 minutes.  But, even though my PC would go more than 30 minutes, weird.

Link to comment
Share on other sites

Link to post
Share on other sites

If its Windows 8.x/Server 2012 or higher just right-click start button, click Event Viewer (if other version of Windows just type Event Viewer in search).

 

Navigate Windows Logs -> System then select "Filter Current Log" then put 1074 into the ID text box, click OK and it list all shutdown/restart events.

 

snip

 

Nothing in the logs. I guess it was the 30 minute to sleep battery power, even though my PC lasted more than 30 minutes.

Link to comment
Share on other sites

Link to post
Share on other sites

Yeah checked that after, it seems to be that, was set to sleep 30 minutes.  But, even though my PC would go more than 30 minutes, weird.

I'm not sure entirely how Windows checks for how long the PC is idle. I would imagine GetLastInputInfo would be called to calculate how long the machine has been idle.

 

Is this what you changed? If so then that should fix the problem.

EJwyhRE.png

Link to comment
Share on other sites

Link to post
Share on other sites

I'm not sure entirely how Windows checks for how long the PC is idle. I would imagine GetLastInputInfo would be called to calculate how long the machine has been idle.

 

Is this what you changed? If so then that should fix the problem.

 

 

Yeah, I changed that,

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×