Glenn i ran the script you posted earlier, and it comes back with an error code of 0 saying it completed.

however, i did have to change a couple things to get it to work. Please review, and tell me if what i changed was ok.

 Code:
$Host = '$computer'           ; define host that returns null data

$uptime = WmiUptime($Host) ?
@ERROR ' / ' @SERROR ?
? $uptime[0]
Sleep 5



Thanks

Indigo

P.S. when i print the output for WMIUptime do i need to specify the [0]?


Edited by Indigoseth (2008-02-27 08:16 PM)