search for: errh

Displaying 1 result from an estimated 1 matches for "errh".

Did you mean: err
2005 Jan 13
1
Using WMI Classes to join worksation to domain
...The code i'm using is $objWMIService = GetObject("winmgmts:" + "{impersonationLevel=impersonate, authenticationLevel=Pkt}!\\.\root\cimv2") $colComputers = $objWMIService.ExecQuery ("Select * from Win32_ComputerSystem") For Each $objComputer in $colComputers $ERRH = $ObjComputer.joindomainorworkgroup(domainname,"password","domainname\root","",1) Next if $ERRH <> 0 color r+/n AT (2,6) "[ERROR: DOMAIN JOIN FAILED - " + $ERRH + "]" exit else color g+/n AT (2,6) "[INFO: Workstation joined to doma...