Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install MSI package using AD alternate Credentials

Status
Not open for further replies.

tavie

Technical User
Nov 23, 2001
79
0
0
US
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.??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top