Lonkero,

I've tested it with machines on the same domain and those can be reached... Only machines in another domain i can't reach [Frown] Should be possible with something like Wbemscripting.SWbemLocator (i'm sure the syntax is wrong, but i don't know what's causing the problem):
code:
$ObjWBemScripting=GetObject("Wbemscripting.SWbemLocator")
; line above returnes error<>0, object not available..

$ObjWBemLocator=$ObjWBemScripting.ConnectServer("$objCom.Name","root\cimv2","$sDomain\SchedAdmin","schedadmin")
; and so line above doesn't work..

$ObjWMIService=GetObject("winmgmts:\\"+$objCom.Name+"\root\cimv2")

I'm also not sure if the last line is correct, because i
_________________________
Kind regards,