Home > Batch Script, Host Uptime, Windows > Windows Host Up Time

Windows Host Up Time

Find out when a Windows host was last restarted using native windows commands.  

Run net stats srv
Server Statistics for \LAP1

Statistics since 9/16/2008 9:14 AM

Sessions accepted 1
Sessions timed-out 0
Sessions errored-out 0

Kilobytes sent 0
Kilobytes received 0

Mean response time (msec) 0

System errors 0
Permission violations 0
Password violations 0

Files accessed 0
Communication devices accessed 0
Print jobs spooled 0

Times buffers exhausted

Big buffers 0
Request buffers 0

 

The command completed successfully.

Pipe to findstr to filter out unecessary stats.

net stats srv | findstr “since”
Statistics since 9/16/2008 9:14 AM

  1. No comments yet.
  1. No trackbacks yet.