Good day,
I'm creating a simple WMI function to scan networks for uptimes on our terminal servers and some more, But I have a problem.
The WMI scripts words as it should be, however, when you input a wrong computer name, it just ends the entire programm and doesn't give me back what I want to get back: "Computer doesn't excist error message".
$strComputer="localhost"
$wbemFlagReturnImmediately = 0x10
$wbemFlagForwardOnly = 0x20
$colItems = ""
$objWMIService = ObjGet("winmgmts:\\" &