How to check the time of computer switch machine?

Source: Internet
Author: User
Tags split

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.