/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


[K2000] When joining domain, KACE lower-cases my domain admin password

08/31/2017 1273 views
I have a post-installation task set up in K2000 to join the domain. However, it will lowercase my domain admin password so I have to edit the task manually to get it corrected. Has something changed in the new version? If so, how can I fix this? Thank you for your help in advance.

Here is my parameters

 cscript join_domain.vbs domain.dom username password

and the join_domain.vbs is



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

If WScript.Arguments.Count < 3 or WScript.Arguments.Count > 4 Then
    ' Duff arguments so return non zero so the task is marked as failed.
    WScript.Quit(1)
Else

    strDomain   = WScript.Arguments.Item(0)
    strUser = WScript.Arguments.Item(1)
    strPassword = WScript.Arguments.Item(2)

    'set DNS IP address
    If WScript.Arguments.Count = 4 Then
            strDNSIP = WScript.Arguments.Item(3)
            Set objShell = CreateObject("WScript.shell")
            objShell.Run "netsh int ip set dns ""local area connection"" static " & _
                        strDNSIP &" primary", 0 , 0
     End If
End If

Set objNetwork = CreateObject("WScript.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)

WScript.Quit(ReturnValue)

Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ