MS "UPTIME" ??? Like the UNIX command ???

  • Thread starter Thread starter newsgroups.comcast.net
  • Start date Start date
N

newsgroups.comcast.net

Does anyone know if they're is a way to look in command.com/Dos shell for
the last boot/or uptime ?

TIA....Cheers.

Mark
 
Sun, 19 Feb 2006 11:22:53 +0530 from Ramesh, MS-MVP
Type in Start, Run:

CMD /K SYSTEMINFO
(for Windows XP Pro)

Just a note -- the "uptime" shown there is calendar time since last
boot, including any time in Hibernate (when the system is actually
shut off).

Does anyone know of a way to display the time since the system last
started, i.e. since the last boot or the last return from
standby/hibernnate, whichever happened most recently? I'd even settle
for a way to display the time since last login, since I normally log
out before hibernating.
 
System Uptime.

Type in a command prompt:

NET STATISTICS SERVER

Hit Enter.

or type:

NET STATISTICS WORKSTATION

Hit Enter.

Scroll back UP to >> Statistics since...
----

With XP Pro only, does not work with XP Home.

Type: systeminfo in a command prompt.

Scroll back UP to >> System Up Time:
-----

Get systemuptime.vbs from...
125. Right hand side
System Up Time
http://www.kellys-korner-xp.com/xp_tweaks.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Sun, 19 Feb 2006 10:21:11 -0700 from Wesley Vogel <123WVogel955
@comcast.net>:
NET STATISTICS SERVER

"The service name is invalid."
NET STATISTICS WORKSTATION

"The service name is invalid."

What am I doing wrong? XP Pro SP2

("systeminfo" does work for me.)
 
Sun, 19 Feb 2006 17:47:54 -0700 from Wesley Vogel <123WVogel955
@comcast.net>:
Do you have the Server and/or Workstation services running?

That might be it.

No, I'll bet a nickel you have neither of those services running. ;-) Let
me know so I can make a note of it.

Neither one shows up in my services.msc list as running or not
running -- they're simply not there. If I had disabled them, they'd
be in the list, wouldn't they?
Do these work?

net /? or NET STATISTICS /?

Yes, each one gives a syntax summary in a few lines.
 
Good question. Perhaps Wesley's method should help..

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Sun, 19 Feb 2006 11:22:53 +0530 from Ramesh, MS-MVP
Type in Start, Run:

CMD /K SYSTEMINFO
(for Windows XP Pro)

Just a note -- the "uptime" shown there is calendar time since last
boot, including any time in Hibernate (when the system is actually
shut off).

Does anyone know of a way to display the time since the system last
started, i.e. since the last boot or the last return from
standby/hibernnate, whichever happened most recently? I'd even settle
for a way to display the time since last login, since I normally log
out before hibernating.
 
Running XP SP2, and the command-line works fine here, Wes.

It looks like Stan needs to reinstate the Server & Workstation service
entries in the registry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver
-and-
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hi Stan,

Maybe it's an SP2 thing. I have XP Pro SP1.

Do these work?

net /? or NET STATISTICS /?

Net statistics
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_statistics.mspx

Do you have the Server and/or Workstation services running?

That might be it.

No, I'll bet a nickel you have neither of those services running. ;-) Let
me know so I can make a note of it.
 
Stan,

Server is the Display name for LanmanServer (Service name).

The Sharing tab is not visible if the Server service isn't running.

This will restore the Server service (lanmanserver) so it will be listed in
Services.msc.

Open Network Connections...
Start | Run | Type: ncpa.cpl | Click OK |
Right click Your Connection | Properties |General tab |
Install button | Highlight: Service | Add button |
Highlight: File and Printer Sharing for Microsoft Networks | Click OK |
Close
-----

Workstation is the Display name for LanmanWorkstation (Service name).

The Background Intelligent Transfer Service service depends on
LanmanWorkstation.

The Workstation service is also needed for Local Users and Groups.

The Client for Microsoft Networks component is actually the Workstation
service.

To see the Workstation service listed in Services...

Network Connections | Right click: Your Connection | Properties | General
tab | Install button | Highlight: Client | Add button | Highlight: Client
for Microsoft Networks | Click OK | Close

Removing Client for Microsoft Networks Removes Other Services
http://support.microsoft.com/default.aspx?scid=kb;en-us;322267

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Mon, 20 Feb 2006 09:40:51 -0700 from Wesley Vogel <123WVogel955
@comcast.net>:
Server is the Display name for LanmanServer (Service name).

The Sharing tab is not visible if the Server service isn't running.

This will restore the Server service (lanmanserver) so it will be listed in
Services.msc.
[snip]

Workstation is the Display name for LanmanWorkstation (Service name).

The Background Intelligent Transfer Service service depends on
LanmanWorkstation.

The Workstation service is also needed for Local Users and Groups.

The Client for Microsoft Networks component is actually the Workstation
service.

[snip]

Thanks for the explanations. Now I understand why "net statistics"
doesn't work and why I don't have those two services listed in my
services.msc -- they were uninstalled, not just disabled.

It's coming back to me now: in Jan 2005 when I got XP, I uninstalled
File and Printer Sharing, NetBIOS, and Client for Microsoft Networks.
(This advice was in Thomas Greene, /Computer Security for the Home
and Small Office/.) This might not be practical for some, but I don't
have any kind of local network here since I have only the one machine
and I have no desire to share files over the Internet.

In the 13.5 months since then, I haven't noticed any problems --
until the fact that "net statistics" doesn't work. I can certainly
live without "net statistics". :-)

Is there anything else non-obvious that I might be missing out on?
 
Is there anything else non-obvious that I might be missing out on?

The only thing that I can think of is...

The Background Intelligent Transfer Service service depends on
the Workstation service.

Windows Update needs the Background Intelligent Transfer Service service.

You receive a "Windows Update has encountered an error and cannot display
the requested page" error message when you try to install an update
http://support.microsoft.com/kb/883614/en-us

You receive a "The necessary services are disabled or unavailable" error
message when you connect to the Microsoft Windows Update Web site or to the
Microsoft Update Web site
http://support.microsoft.com/kb/883822/en-us

How are you getting Windows Updates?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Stan Brown said:
Mon, 20 Feb 2006 09:40:51 -0700 from Wesley Vogel <123WVogel955
@comcast.net>:
Server is the Display name for LanmanServer (Service name).

The Sharing tab is not visible if the Server service isn't running.

This will restore the Server service (lanmanserver) so it will be listed
in Services.msc.
[snip]

Workstation is the Display name for LanmanWorkstation (Service name).

The Background Intelligent Transfer Service service depends on
LanmanWorkstation.

The Workstation service is also needed for Local Users and Groups.

The Client for Microsoft Networks component is actually the Workstation
service.

[snip]

Thanks for the explanations. Now I understand why "net statistics"
doesn't work and why I don't have those two services listed in my
services.msc -- they were uninstalled, not just disabled.

It's coming back to me now: in Jan 2005 when I got XP, I uninstalled
File and Printer Sharing, NetBIOS, and Client for Microsoft Networks.
(This advice was in Thomas Greene, /Computer Security for the Home
and Small Office/.) This might not be practical for some, but I don't
have any kind of local network here since I have only the one machine
and I have no desire to share files over the Internet.

In the 13.5 months since then, I haven't noticed any problems --
until the fact that "net statistics" doesn't work. I can certainly
live without "net statistics". :-)

Is there anything else non-obvious that I might be missing out on?
 
Tue, 21 Feb 2006 10:50:30 -0700 from Wesley Vogel <123WVogel955
@comcast.net>:
The only thing that I can think of is...

The Background Intelligent Transfer Service service depends on
the Workstation service.

Windows Update needs the Background Intelligent Transfer Service service.

I think maybe _automatic_ update needs BITS. I've got update set to
notify me but not actually to do the updates. Periodically I log on
as admin, open Windows Update, and read the descriptions.

Black Viper recommended disabling it, so I did (sometime last spring,
IIRC). BV says no services depend on BITS. Black Viper's site is
currently in one of its "unavailable" phases, but if you do this
Google search
"background intelligent transfer service" "should disable"
(quotes as shown) you'll turn up its recommendation if you click on
"Cached". The direct URL is
but I don't know whether that will work for you.

There's also a horror story at
You receive a "Windows Update has encountered an error and cannot display
the requested page" error message when you try to install an update
http://support.microsoft.com/kb/883614/en-us

You receive a "The necessary services are disabled or unavailable" error
message when you connect to the Microsoft Windows Update Web site or to the
Microsoft Update Web site
http://support.microsoft.com/kb/883822/en-us

Neither of these has happened to me.

(I really wish Microsoft would describe the consequences of disabling
services, clearly and accurately, instead of just "A, B, and C might
not work." I understand it's easier not to provide such specific
documentation, but surely the richest corporation in the world could
afford to do the job right.)
 
I wonder what the deal is with Black Viper?

The following Blackviper sites usually work.
http://web.archive.org/web/20041128094512/http://www.blackviper.com/
http://web.archive.org/web/20041128084144/www.blackviper.com/WinXP/servicecfg.htm

I do not use Automatic Updates.

I visit
http://update.microsoft.com/windowsupdate/v6/default.aspx?ln=en-us
but for that to work, the Automatic Updates and BITS services have to be
running. So once a month I re-enable those services and visit Microsoft
Windows Update. Then disable them again when I'm through.

If Automatic Updates and BITS services are not running you get Error number:
0x8DDD0018.
[[The site cannot continue because one or more of these Windows services is
not running:

• Automatic Updates (allows the site to find, download and install
high-priority updates for your computer)
• Background Intelligent Transfer Service (BITS) (helps updates download
more quickly and without problems if the download process is interrupted)
• Event Log (keeps a record of updating activities to help with
troubleshooting, if needed) ]]
<snip>

Apparently BITS isn't needed if you use Automatic Updates and do not visit
the site manually.

Services is always a tough one to figure out and there are no clear cut:
Here's how you set 'em. Everybody is different. I have been fiddling with
Services ever since I installed XP. And probably will continue. Especially
since I have to get SP2 this year so I can continue to get Windows Updates.
SP2 adds some new services: DCOM Server Process Launcher, HTTP SSL, Network
Provisioning Service and Security Center.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Wed, 22 Feb 2006 11:16:45 -0700 from Wesley Vogel <123WVogel955
@comcast.net>:
I wonder what the deal is with Black Viper?

Dunno -- the information is great, but the hosting seems to be
intermittent.

Well, for some value of "work". I love Archive.org (the "Internet
Wayback Machine"), but you have to enable Javascript to make any
links in the archived pages work. For reasons not clear to me the
archive depends on some sort of on-the-fly rewriting of links.
I do not use Automatic Updates.

Apparently BITS isn't needed if you use Automatic Updates and do not visit
the site manually.

Well, there's Automatic Updates and then there's Automatic Updates. I
have automatic notification but discretionary download and install.
Services is always a tough one to figure out and there are no clear cut:
Here's how you set 'em. Everybody is different. I have been fiddling with
Services ever since I installed XP. And probably will continue.

Sigh. "All the work of administering a Linux system with none of the
control or understanding."
 
It was too long ago for me to remember what time the show came on, but I too
was in the Midwest then, Iowa. :-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Sat, 25 Feb 2006 16:36:45 -0600 from Sharon F
...who were regulars on the Rocky and Bullwinkle show. In the midwest, the
program aired right after dinner "back in the day." ;)

You must have eaten _really early. In Baltimore, one hour ahead of
the Midwest, it was an after-school program.
 
Back
Top