Displaying 1 result from an estimated 1 matches for "authenticationlevel".
Did you mean:
authentication_level
2005 Jan 13
1
Using WMI Classes to join worksation to domain
...except the joining to the domain part. I have been 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 <&...