[Download]
To use this script you will need uptime.exe from Microsoft and placed in a system Path (such as in the Windows Folder). You can get uptime.exe from Microsoft: http://support.microsoft.com/kb/232243
Variables:
$days - number of days the computer has been on
$hours - hours excluding days
$minutes - minutes excluding hours and days
$seconds - seconds excluding hours, days, and minutes
Variables:
$days - number of days the computer has been on
$hours - hours excluding days
$minutes - minutes excluding hours and days
$seconds - seconds excluding hours, days, and minutes