Log of Reboots

  • Thread starter Thread starter wall158218
  • Start date Start date
W

wall158218

Trying to find if there is a default command in Windows
2000 Server that will tell me a history of server reboots.
A similar command in Unix is last reboot and it will hold
the number of reboots from time back. Only other means i
can think of is to parse the event viewer log file. Any
one able to lend a hand?
 
Trying to find if there is a default command in Windows
2000 Server that will tell me a history of server reboots.
A similar command in Unix is last reboot and it will hold
the number of reboots from time back. Only other means i
can think of is to parse the event viewer log file. Any
one able to lend a hand?

The easiest way is to schedule this batch file via the Task
Scheduler, making it run at boot time:

@echo off
if not exist c:\Logs md c:\Logs
echo %date% %time%: %Computername% rebooted >> c:\Logs\Reboot.txt
 
--------------------
From: "(e-mail address removed)" <[email protected]>
Subject: Log of Reboots
Date: Fri, 20 Feb 2004 17:13:14 -0800
Newsgroups: microsoft.public.win2000.general

Trying to find if there is a default command in Windows
2000 Server that will tell me a history of server reboots.
A similar command in Unix is last reboot and it will hold
the number of reboots from time back. Only other means i
can think of is to parse the event viewer log file. Any
one able to lend a hand?
---

The only native method that would be active in Windows 2000 that I know of would be the System Event Log. You could
filter it for Event ID 6009 so it only shows the restarts.

Bill Peele
Microsoft Enterprise Support

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread
from which they originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top