search for: joindomainorworkgroup

Displaying 3 results from an estimated 3 matches for "joindomainorworkgroup".

2010 Aug 17
6
enable client to join domain with no or any password?
I am trying to automate W7 joining to our Samba domain. It works fine through the Windows GUI from the W7 workstations. However, for a script one would have to store password used for domain access, and since that is the server's root password, I really don't want to hard code that into a file. Is there a way to set (temporarily) a Samba server so that it will accept (admin/anything) as
2005 Jan 13
1
Using WMI Classes to join worksation to domain
...ing 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 domain LONGHILL]" sleep 2 endif Th...
2014 Mar 04
0
Anybody have issues joining machines to a S4 AD domain using VBS
...Script.Network") strComputer = objNetwork.ComputerName Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _ strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _ strComputer & "'") ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _ strPassword, strDomain & "\" & strUser, NULL, _ JOIN_DOMAIN + ACCT_CREATE) Select Case ReturnValue Case 0 Status = "Success" Case 2 Status = "Missing OU" Case 5 Status = "Access denied" Case 53 Status = "Network path not found&qu...