systeminfo.exe

G

Guest

Normally when I go to a command prompt and type in "systeminfo", a bunch of
information is displayed about my computer. One thing I always liked was
that it would show my system uptime.

Now when I run the command it always says the system uptime is "N/A". I
have searched Google and other people have this problem. I cant however find
a solution to fix it so that the system uptime is displayed.

The output looks like this:

System Up Time: N/A


Does anyone know what causes this and how to fix it?

Thanks,
Adam
 
R

Ramesh, MS-MVP

Hi Adam,

Might be a problem with WMI. To test that, see if this script helps:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0907.mspx

Copy the script to Notepad, and save as "Uptime.VBS" to the Desktop.
Double-click the file. BTW, to report in "minutes", change the following
line:

dtmSystemUptime = DateDiff("h", dtmLastBootUpTime, Now)
to
dtmSystemUptime = DateDiff("n", dtmLastBootUpTime, Now)


Alternately, you can use the uptime.exe utility from Microsoft Resource Kit
tools. Uptime is a simple command line tool that analyzes a single server
for reliability and availability information. It can work locally or
remotely. In its simple form, the tool will display the current system
uptime. An advanced option allows you to access more detailed information
such as shutdown, reboots, operating system crashes, and Service Pack
installation.
You can download uptime.exe from here:

http://download.microsoft.com/download/winntsrv40/Install/uptime_1.01/NT4/EN-US/uptime.exe

Download and save this file on your hard disk. You can then run uptime.exe
from a command prompt. Type cmd.exe in Start, Run and uptime.exe
You'll see the output like this:

\\XPCOMP has been up for: 0 day(s), 0 hour(s), 49 minute(s), 6 second(s)

Uptime Reliability and Availability Information Tool : [Microsoft Windows NT
Server 4.0; uptime tool; reliability and availability tool; ]:
http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp
 
G

Guest

The uptime.exe file worked. But I would still like to know how to get
systeminfo.exe to work again.

Ramesh said:
Hi Adam,

Might be a problem with WMI. To test that, see if this script helps:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0907.mspx

Copy the script to Notepad, and save as "Uptime.VBS" to the Desktop.
Double-click the file. BTW, to report in "minutes", change the following
line:

dtmSystemUptime = DateDiff("h", dtmLastBootUpTime, Now)
to
dtmSystemUptime = DateDiff("n", dtmLastBootUpTime, Now)


Alternately, you can use the uptime.exe utility from Microsoft Resource Kit
tools. Uptime is a simple command line tool that analyzes a single server
for reliability and availability information. It can work locally or
remotely. In its simple form, the tool will display the current system
uptime. An advanced option allows you to access more detailed information
such as shutdown, reboots, operating system crashes, and Service Pack
installation.
You can download uptime.exe from here:

http://download.microsoft.com/download/winntsrv40/Install/uptime_1.01/NT4/EN-US/uptime.exe

Download and save this file on your hard disk. You can then run uptime.exe
from a command prompt. Type cmd.exe in Start, Run and uptime.exe
You'll see the output like this:

\\XPCOMP has been up for: 0 day(s), 0 hour(s), 49 minute(s), 6 second(s)

Uptime Reliability and Availability Information Tool : [Microsoft Windows NT
Server 4.0; uptime tool; reliability and availability tool; ]:
http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp


--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


xadamz23 said:
Normally when I go to a command prompt and type in "systeminfo", a bunch
of
information is displayed about my computer. One thing I always liked was
that it would show my system uptime.

Now when I run the command it always says the system uptime is "N/A". I
have searched Google and other people have this problem. I cant however
find
a solution to fix it so that the system uptime is displayed.

The output looks like this:

System Up Time: N/A


Does anyone know what causes this and how to fix it?

Thanks,
Adam
 
R

Ramesh, MS-MVP

But I would still like to know how to get systeminfo.exe to work again.

That's the reason I suggested you try the WMI script. If that fails, then
there is something wrong with WMI files in the system.


--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


xadamz23 said:
The uptime.exe file worked. But I would still like to know how to get
systeminfo.exe to work again.

Ramesh said:
Hi Adam,

Might be a problem with WMI. To test that, see if this script helps:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0907.mspx

Copy the script to Notepad, and save as "Uptime.VBS" to the Desktop.
Double-click the file. BTW, to report in "minutes", change the following
line:

dtmSystemUptime = DateDiff("h", dtmLastBootUpTime, Now)
to
dtmSystemUptime = DateDiff("n", dtmLastBootUpTime, Now)


Alternately, you can use the uptime.exe utility from Microsoft Resource
Kit
tools. Uptime is a simple command line tool that analyzes a single server
for reliability and availability information. It can work locally or
remotely. In its simple form, the tool will display the current system
uptime. An advanced option allows you to access more detailed information
such as shutdown, reboots, operating system crashes, and Service Pack
installation.
You can download uptime.exe from here:

http://download.microsoft.com/download/winntsrv40/Install/uptime_1.01/NT4/EN-US/uptime.exe

Download and save this file on your hard disk. You can then run
uptime.exe
from a command prompt. Type cmd.exe in Start, Run and uptime.exe
You'll see the output like this:

\\XPCOMP has been up for: 0 day(s), 0 hour(s), 49 minute(s), 6 second(s)

Uptime Reliability and Availability Information Tool : [Microsoft Windows
NT
Server 4.0; uptime tool; reliability and availability tool; ]:
http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp


--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


xadamz23 said:
Normally when I go to a command prompt and type in "systeminfo", a
bunch
of
information is displayed about my computer. One thing I always liked
was
that it would show my system uptime.

Now when I run the command it always says the system uptime is "N/A".
I
have searched Google and other people have this problem. I cant
however
find
a solution to fix it so that the system uptime is displayed.

The output looks like this:

System Up Time: N/A


Does anyone know what causes this and how to fix it?

Thanks,
Adam
 
G

Guest

Well when I run the vbs script, it displays "1". Im guessing it is reporting
how many hours my system has been up because it has been up for a little over
an hour.

Ramesh said:
That's the reason I suggested you try the WMI script. If that fails, then
there is something wrong with WMI files in the system.


--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


xadamz23 said:
The uptime.exe file worked. But I would still like to know how to get
systeminfo.exe to work again.

Ramesh said:
Hi Adam,

Might be a problem with WMI. To test that, see if this script helps:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0907.mspx

Copy the script to Notepad, and save as "Uptime.VBS" to the Desktop.
Double-click the file. BTW, to report in "minutes", change the following
line:

dtmSystemUptime = DateDiff("h", dtmLastBootUpTime, Now)
to
dtmSystemUptime = DateDiff("n", dtmLastBootUpTime, Now)


Alternately, you can use the uptime.exe utility from Microsoft Resource
Kit
tools. Uptime is a simple command line tool that analyzes a single server
for reliability and availability information. It can work locally or
remotely. In its simple form, the tool will display the current system
uptime. An advanced option allows you to access more detailed information
such as shutdown, reboots, operating system crashes, and Service Pack
installation.
You can download uptime.exe from here:

http://download.microsoft.com/download/winntsrv40/Install/uptime_1.01/NT4/EN-US/uptime.exe

Download and save this file on your hard disk. You can then run
uptime.exe
from a command prompt. Type cmd.exe in Start, Run and uptime.exe
You'll see the output like this:

\\XPCOMP has been up for: 0 day(s), 0 hour(s), 49 minute(s), 6 second(s)

Uptime Reliability and Availability Information Tool : [Microsoft Windows
NT
Server 4.0; uptime tool; reliability and availability tool; ]:
http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp


--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Normally when I go to a command prompt and type in "systeminfo", a
bunch
of
information is displayed about my computer. One thing I always liked
was
that it would show my system uptime.

Now when I run the command it always says the system uptime is "N/A".
I
have searched Google and other people have this problem. I cant
however
find
a solution to fix it so that the system uptime is displayed.

The output looks like this:

System Up Time: N/A


Does anyone know what causes this and how to fix it?

Thanks,
Adam
 

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

Top