Well First off let me say that this MSI package will not install correctly via AD GPO. It requires user interaction to deploy...I tried many times. I can however deploy the package locally if logged on using Domain Admin rights. But via the script I need to pass in Domain admin rights or it fails when deploying through a GPO logon Policy...
Here is the what I have..............
Const ADS_SECURE_AUTHENTICATION = 1
strUserDN = "cn=Username,cn=ako,cn=Priveleged Accounts,dc=DomainName,dc=com"
strPassword = "Password"
Set objRoot = GetObject("LDAP:")
Set objDomain = _
objRoot.OpenDSObject("LDAP://dc=DomainName,dc=com", _
strUserDN, strPassword, ADS_SECURE_AUTHENTICATION)
Set objShell = objdomain.createobject("Wscript.Shell")
'Set WshShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
myCmd = "msiexec /qb /i "
mycmd0 = "\\Akoads01\Published\ISScript_9\ISScript9.msi"
myCmd1 = "\\Akoads01\Published\StormWatch_3.2\stormwatch agent.msi"
objShell.Run mycmd & """\\Akoads01\Published\ISScript_9\ISScript9.msi""",1,true
objShell.Run mycmd & """\\Akoads01\Published\sw agent.msi""",1,true
How would I script it to use Domain privilges to install on a remote Workstation.??
Here is the what I have..............
Const ADS_SECURE_AUTHENTICATION = 1
strUserDN = "cn=Username,cn=ako,cn=Priveleged Accounts,dc=DomainName,dc=com"
strPassword = "Password"
Set objRoot = GetObject("LDAP:")
Set objDomain = _
objRoot.OpenDSObject("LDAP://dc=DomainName,dc=com", _
strUserDN, strPassword, ADS_SECURE_AUTHENTICATION)
Set objShell = objdomain.createobject("Wscript.Shell")
'Set WshShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
myCmd = "msiexec /qb /i "
mycmd0 = "\\Akoads01\Published\ISScript_9\ISScript9.msi"
myCmd1 = "\\Akoads01\Published\StormWatch_3.2\stormwatch agent.msi"
objShell.Run mycmd & """\\Akoads01\Published\ISScript_9\ISScript9.msi""",1,true
objShell.Run mycmd & """\\Akoads01\Published\sw agent.msi""",1,true
How would I script it to use Domain privilges to install on a remote Workstation.??