Displaying 1 result from an estimated 1 matches for "strdomain".
Did you mean:
srdomain
2014 Mar 04
0
Anybody have issues joining machines to a S4 AD domain using VBS
...is below
' Join a Computer to a Domain
Const JOIN_DOMAIN = 1
Const ACCT_CREATE = 2
Const ACCT_DELETE = 4
Const WIN9X_UPGRADE = 16
Const DOMAIN_JOIN_IF_JOINED = 32
Const JOIN_UNSECURE = 64
Const MACHINE_PASSWORD_PASSED = 128
Const DEFERRED_SPN_SET = 256
Const INSTALL_INVOCATION = 262144
strDomain = "xxxx.com"
strPassword = "xxxx"
strUser = "Joiner"
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
'Join Computer to doma...