Depth technology win7 system how to view the computer's on/off time

  

Method 1, by viewing the event log method

1, open the win7 system & ldquo; start & rdquo; menu run & rdquo;, enter “ Eventvwr.msc”, open the event viewer;

2, then select “system” in the left window, and find the event ID 6005, 6006 event from the right system event (event ID number) For the event of 6005, it indicates that the event log service has been started, that is, it is powered on. Similarly, the event ID: 6006 indicates shutdown. The corresponding time is the boot time and the shutdown time respectively.

3, if you think that it is very cumbersome to find the switch machine from so many events, you can use the "Filter" function to select “Filter & rdquo; in the event viewer's "View" menu. Option, that is, create a custom view;

3. In the Properties dialog box, select the “Filter” tab and check ">;Information”,“Warning" ,  Error” three items, select “eventlog” in the “Event Sources” drop-down list, click the “Determine” button, the content of the system event is much less, we can easily find the nearest The switch time is up.

Method 2,

Open the win7 system in the "Start" menu, click "Run", and then enter "C: WINDOWSschedlgu.txt", in the open schedlgu.txt In the file, the "Task Scheduler Service" has been started in …… and "The Task Scheduler Service" has exited from ……, which corresponds to the boot and shutdown times.

Method 3, use the script to record every day, and then open the text document to see it directly. The specific method is as follows: For example, record the time of the E disk switch.txt.

1, first, create a new text document, change the name to "kai.bat" (don't forget to change the extension), right-click to open, content into the middle of the two dividing lines below

@echo off

echo %date% %time% Power On >>E: Power On/Off Time.txt

2. Create a new text file and change the name to “ldquo; Guan.bat” (don't forget to change the extension), right-click to open, content input;

@echo off

echo %date% %time% Shutdown>>E: Switch the machine time.txt

3, then enter "ldped;gpedit.msc" in the run dialog box, open the group policy, expand the computer configuration, Windows settings, double-click to start, display the file, then copy the kai.bat Go in;

4, then add in the startup properties, browse, add kai.bat, the same reason, add guan.bat to the shutdown according to the above steps.

5, this is done, you can go directly to the E disk to see later, the document will be listed.

ps: The last method does not log abnormal shutdowns. Some anti-virus software will block them. Please add these two bats to the whitelist and trust them.

Copyright © Windows knowledge All Rights Reserved