search for: colcomput

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

Did you mean: cogcompat
2005 Jan 13
1
Using WMI Classes to join worksation to domain
...een using WMI classes to change the worksation name, and was hoping to do the same with the domain join. The workstations are WinXP. 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) "[ERR...