wevtutil

sm625

Diamond Member
May 6, 2011
8,172
137
106
I'm looking for a wevtutil command line string (or equivalent command line string) that will return me the last shutdown time for my pc. Anyone know it?
 

Dahak

Diamond Member
Mar 2, 2000
3,752
25
91
I have not used this personally but did find the following post at technet

that had the command that you are looking for
Code:
wevtutil qe system "/q:*[System[EventID=1074]] /f:text /rd:true /c:1

if you want to a txt file you can add > c: \path to file\filename.txt
 
Last edited:

sm625

Diamond Member
May 6, 2011
8,172
137
106
Code:
wevtutil qe system "/q:*[System[EventID=10774]]" /f:text /rd:true /c:1 > wevdata.txt

results in a wevdata.txt file with 0 bytes
 

Dahak

Diamond Member
Mar 2, 2000
3,752
25
91
whoops, what I get for typing it out instead of direct copy, I will fix the original post to in case anyone comes across it