Windows Switch Machine time history

Source: Internet
Author: User

1. Boot time record batch file, Kai.bat

1 @echo off 2 3 echo %date% time

2. Shutdown time Recording batch file, Guan.bat

@echo off echo %date% time


3. Open the Run dialog box (win+r key combination or in the search box of the Win7 system), enter Gpedit.msc, open the Group Policy Editor, expand Computer Configuration →windows settings → scripts (startup/shutdown), in the right-hand box, double-click Start, select Add, In the dialog box that opens, select Browse to locate the Kai.bat. Double-click the selection to add it to the boot script. Add Guan.bat the same way.

4. After adding 2 batch files to the switch script, each switch will record the date and time in the "d:\ switch machine record \ Switch machine time. txt" file.

Windows Switch Machine time history

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.