How can I see time my PC was last shut down

M

mike

How can I tell what time my PC was last shut down?

Is there a file which has its timestamp changed during shutdown (but
is not changed on startup)?

Alternatively, is there an entry made in a log file during shutdown?
 
P

Pegasus [MVP]

mike said:
How can I tell what time my PC was last shut down?

Is there a file which has its timestamp changed during shutdown (but
is not changed on startup)?

Alternatively, is there an entry made in a log file during shutdown?

You would have to invoke your own shutdown script via the local policy
(gpedit.msc), perhaps like so:
@echo off
echo Windows was shut down on %date% at %time:~0,5% >> c:\shutdown.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top