I'm setting up a few applications to install silently when a user logs on. The login script calls a .vbs file, which in turn calls my .cmd file. I have it calling the vbs file because this allows me to run it hidden, and not minimized.
What I'm finding with users that don't have the rights to install applications, they are getting the RunAs prompt when the application trys to install. How can I automate the runas command in my .cmd file?
applicationInstalls.vbs
applicationInstalls.cmd
Everything works good when it's an administrator logging on. Any ideas?
What I'm finding with users that don't have the rights to install applications, they are getting the RunAs prompt when the application trys to install. How can I automate the runas command in my .cmd file?
applicationInstalls.vbs
Code:
Set oShell = CreateObject("WSCript.shell")
sCmd = "\\domain\NETLOGON\applicationInstalls.cmd"
oShell.Run sCmd, 0, False ' The 0 will make it run hidden
applicationInstalls.cmd
Code:
@echo off
:Adobe_Reader9.3
"G:\INSTALL\Adobe\Adobe9.3\AdbeRdr930_en_US.exe /sAll /rs /l /msi"/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES""
:End
Everything works good when it's an administrator logging on. Any ideas?