Add a Windows computer to the 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
strComputer = "."
strDomain = "example.com"
strUser = inputbox("Sys Account Name")
strPassword = inputbox("Sys Account Password")
strLocation = "Something"
strWorkstationDesc = ""