ok, try this then - between these two lines:

Code:

for each $computer in NetView
$xQuery = WMIService("SpntSvc","query","$computer")



put this:

Code:

for each $computer in NetView
$computer = substr($computer,3)
$xQuery = WMIService("SpntSvc","query","$computer")



This strips-off those double whack-whacks from the hostname ...

-Shawn