Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Based on the answer to this question:
Windows XP: is it possible to log startup and shutdown times in the system event log?
I want to be able to add it to a batch file, but have no idea how to go about that. I'd like to be able to just run "logstartup.bat" and have it do the manual portion of the linked answer.

share|improve this question
This question [… on serverfault covers exporting and importing security policy settings. You could run those commands in a batch file. From a quick glance it uses secpol.msc, which overlaps with gpedit.msc mentioned in your linked answer, although I couldn't see the settings mentioned in your linked answer in either tool on my system, so not 100% sure if this link is relevant. Worth a look anyway. – lessthanideal Nov 14 '12 at 15:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.