General discussion

Locked

Last Rebooted

By BlackDiamond ·
Hey,

Is there any way or any programs out that will allow you to remotely see when a PC/Server was last rebooted?

This conversation is currently closed to new comments.

19 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by BFilmFan In reply to Last Rebooted

Assuming this is Microsoft:

Workstation:

net statistics workstation | more

Server:

net statistics server | more

Enjoy.

Collapse -

by BFilmFan In reply to

For a remote system, you will need to use a third-party product like CMDInfo by SavillTech, which you can get here:

http://www.savilltech.com/cmdinfo.html

Collapse -

by BlackDiamond In reply to

Hey,

Sorry could not get that other program to work.

Collapse -

by BlackDiamond In reply to Last Rebooted

Hey,

Yes it is Windows, Sorry.

That appears to show me the stats for the system I am on. It could be that I am doing it wrong which would not be a first for me.

Maybe I did not phrase it right in the main question.

I am on my system, we'll call it BD1
I want to be able to look at a system called BD2 in a different department and see when it was last rebooted.

Thanx

Collapse -

by 3xp3rt In reply to Last Rebooted

With net statistics command you can see if the connection with server was broken but you don't know when. For more informations you need to see the server's events. A solution can bee if you make an application for monitoring the connection with server, and notify all the events.

Collapse -

by BlackDiamond In reply to

Poster rated this answer.

Collapse -

by neilb@uk In reply to Last Rebooted

Have a little vbscript

sServerName = "DC-01" ' obviously, whatever your server's called

Set objWMIService = GetObject ("winmgmts:\\" & sServerName & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOS in colOperatingSystems
dOldLaststart = WMIDateStringToDate(objOS.LastBootUpTime)
Next
wscript.echo "Previous boot up date and time was " & dOldLastStart

wscript.quit

Function WMIDateStringToDate(dBoot)
WMIDateStringToDate = DateAdd("n",cInt(right(dBoot,4)) * -1, _
CDate(Mid(dBoot, 7, 2) & "/" & Mid(dBoot, 5, 2) & "/" & _
Left(dBoot, 4) & " " & Mid (dBoot, 9, 2) & ":" & _
Mid(dBoot, 11, 2) & ":" & Mid(dBoot, 13, 2)))
End Function

Collapse -

by neilb@uk In reply to

You can replace the first line with:

sServerName = inputbox("Please enter server name")

Slightly prettier :)

Collapse -

by neilb@uk In reply to

Ooops, UK date format!

You'll probably want Mid(dBoot,5,2) & "/" & Mid(dBoot,7,2)

Collapse -

by neilb@uk In reply to

Damn timezones again. I'll fix it tomorrow - my tomorrow!

Back to Desktop Forum
19 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums