1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

W2K Server - Command for uptime?

Discussion in 'Windows & Other Software' started by Virdi, 12 Apr 2006.

  1. Virdi

    Mobster

    Joined: 11 Jun 2004

    Posts: 4,165

    Location: Middlesex, London

    Hello all,

    I used to use the 'srvinfo' command to get the uptime of the Server...

    How else can you find the uptime of the a W2K Server?

    Thanks
     
  2. NathanE

    Capodecina

    Joined: 21 Oct 2002

    Posts: 18,022

    Location: London & Singapore

  3. Otacon

    Capodecina

    Joined: 10 Jan 2004

    Posts: 21,923

    Location: All over

    Either pull it out of WMI using your preferred scripting language, or use psinfo.

    I just have scripts for things like this.
     
  4. Virdi

    Mobster

    Joined: 11 Jun 2004

    Posts: 4,165

    Location: Middlesex, London

    Thanks guys,

    But I was kinda hoping there was a nice and easy command..?

    What is WMI?

    Thanks
     
  5. NathanE

    Capodecina

    Joined: 21 Oct 2002

    Posts: 18,022

    Location: London & Singapore

    See my link for a nice easy command....
     
  6. Otacon

    Capodecina

    Joined: 10 Jan 2004

    Posts: 21,923

    Location: All over

    WMI is an programatic interface to Windows, used for getting information concerning just about anything in your system. This will give you a quick uptime in minutes:

    Script (XP/2003 system)

    Nathan is quite right though, that CLI tool will work just fine. It's all about what you're familiar with.
     
  7. Virdi

    Mobster

    Joined: 11 Jun 2004

    Posts: 4,165

    Location: Middlesex, London

    This is good - But I don't want to be downloading and installing anything on 'Work' Servers :o
     
  8. Otacon

    Capodecina

    Joined: 10 Jan 2004

    Posts: 21,923

    Location: All over

    It's just an exe dude. I believe that can even be ran on your machine and targetted at the server if you want.
     
  9. ns400r

    Mobster

    Joined: 23 Apr 2004

    Posts: 3,580

    Location: UK, Near the middle......

    systeminfo from a command prompt. It'll be in there somewhere.