Need a way of finding out when a computer last booted
Posted: 22 Sep 2010 14:35
Several of my coworkers and I have created a script that gives us some info on remote computers we are working on. Currently one of the pieces of information we need is finding out when a remote computer's uptime. We are using the code "Systeminfo /S %computername% | Find "Up Time""
For reasons I won't get into here this script is only working on about 65% of the computers we are testing. The other 35% come back with a "System Up Time: N/A" status. After searching Google, we believe this to be a problem with the WMI service of the computers.
With that said we need an alternate way of getting this information. We are aware there are plenty of third party tools to do this but due to company policy we can only use scripts.
Does anyone have any thoughts on how to get a systems up time other than the systeminfo command in Windows XP?
For reasons I won't get into here this script is only working on about 65% of the computers we are testing. The other 35% come back with a "System Up Time: N/A" status. After searching Google, we believe this to be a problem with the WMI service of the computers.
With that said we need an alternate way of getting this information. We are aware there are plenty of third party tools to do this but due to company policy we can only use scripts.
Does anyone have any thoughts on how to get a systems up time other than the systeminfo command in Windows XP?