To know if anyone has ever used a computer, it is no doubt a very effective way to look at the time of the switch machine. So what do you think? Let me teach you.
Only once in a while.
You can use the "Log On" method. Enter Eventvwr.msc in the Start menu, open Event Viewer, select System in the left window, and look for event ID 6005, 6006 events from the right system event (Event ID number 6005 indicates that the event Log service was started, that is, the boot, The same event id:6006 indicates a shutdown, and their corresponding time is the boot time and shutdown time respectively.
If you think it's too much trouble to find a switch machine from so many events, you can use "filter" to make the content concise. Select the filter option in the View menu of Event Viewer, or create a custom view. In the Properties dialog box, select the Filter tab and check the info, warning, error three items in the event source Drop-down list, select EventLog, and then click OK, and then the The contents of the system event are much less, we can easily find the latest time of the switch machine.
If you still feel too much trouble, you can enter "C:windowsschedlgu.txt" in "Run" on the Start menu, and in the open SchedLgU.txt file, the Task Scheduler service starts in ... and the Task Scheduler service has exited from ... Time, respectively corresponding to the boot and shutdown time.
Or too much trouble, well, let's make it easier, use the script to record every day, and then open the text document directly to see the line, let me explain how to set up. For example, record to e-disk switch machine time. txt.
First, create a new text document, renamed as "Kai.bat" (Do not forget to change the extension), right-click Edit Open, content input below 2 lines in the middle of the content
------Split Line starts----------
@echo off
echo%date%%time% boot >>e: Switch machine time. txt
------The split line ends----------
Create a new text document, renamed as "Guan.bat" (Don't forget to change the extension), right-click Edit Open, content input below 2 lines in the middle of the content
------Split Line starts----------
@echo off
echo%date%%time% shutdown >>e: Switch machine time. txt
-----The split line ends----------
On the Start menu, enter Gpedit.msc in run, open Group Policy, expand Computer Configuration, Windows settings, double-click startup, display files, and then copy Kai.bat into.
Then add, browse, and add Kai.bat to the startup properties.
In the same vein, add the Guan.bat to the shutdown by following the above steps.
Haha, finished, and then go directly to E disk there to see it, all listed out.
Attention matters
The last method does not record an abnormal shutdown
Some anti-virus software will block, please add these two bat white list, trust them.