NT Gatekeeper: Reporting on System Uptimes and Boot and Shutdown Times

In your August 2002 NT Gatekeeper column (http://www.secadministrator.com, InstantDoc ID 25726), you discussed Sysinternals' PsInfo tool, a freeware utility that reports on a system's uptime. I'm interested not only in the total system uptime but also in a precise list of the system boot and shutdown times. I'm looking for a command-line tool that can report on local and remote system uptimes and boot and shutdown times.

The Uptime command-line tool can perform these functions. You can download the tool, which requires Windows NT 4.0 Service Pack 4 (SP4) or later, from http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp. To report on your local system's uptime and boot and shutdown times, run the following Uptime command from the command line:

uptime /s

To limit your query to the past 14 days, add the /p:14 switch, as Figure 1 shows. To query the uptime, boot, and shutdown times on a remote system called myserver, type

uptime myserver /s

The tool uses a system's event-log data to report on uptime and can't make calculations before the beginning of the event log. If a system's event log is cleared, you won't be able to make calculations on a system's uptime history. For details about using the Uptime tool, see the Microsoft article "Uptime.exe Tool Allows You to Estimate Server Availability with Windows NT 4.0 SP4 or Higher" (http://support.microsoft.com/?kbid=232243).

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.