Hi All,
I am trying to install Lenovo Display Control Center through Bigfix. I am able to install it manually on CMD as admin but while trying to do it through Bigfix task its prompting for UAC if user have administrator rights and if not then its showing that this application is blocked by your IT administrator.
I tried to Runas=localuser and asadmin=true but that also not worked in this case.
tried to add the current user in local administrator group and remove it in end of action but somehow that didn’t work.
Below is the action script of the task:
// Use .bat to set working directory to packages root, for setup command.
createfile until end
@ECHO OFF
cd "{parameter “outsideOfClientFolder”}"
rem // See comments at the beginning of this action for an explanation of the comment markers.
echo %DATE% %TIME% >> "{parameter “logFolder”}{parameter “logFile”}"
echo Action ID: {id of active action} >> "{parameter “logFolder”}{parameter “logFile”}"
rem //**Begin Command Marker
echo Command: “setup.exe” /s >> "{parameter “logFolder”}{parameter “logFile”}"
set errorlevel=
“setup.exe” /s >> “{parameter “logFolder”}{parameter “logFile”}” 2>&1
set SWDExitCode=%errorlevel%
rem //**End Command Marker
echo Return code: %SWDExitCode% >> "{parameter “logFolder”}{parameter “logFile”}"
echo. >> "{parameter “logFolder”}{parameter “logFile”}"
exit %SWDExitCode%
end
move __createfile run.bat
waithidden cmd /C copy /Y run.bat "{parameter “outsideOfClientFolder”}"
waithidden cmd /C xcopy /Y /E “{pathname of client folder of current site}__Download” “{parameter “outsideOfClientFolder”}”
// You will not be able to stop or take action on an applicable BigFix Client until your installer completes.
// So ensure no user input is required.
// If your package absolutely must interact with the user, replace ‘override wait’ with ‘override run’ and ‘wait’ with ‘run’.
override wait
runas=currentuser
completion=job
hidden=true
wait “{parameter “outsideOfClientFolder”}\run.bat”