Run app from script without user intervention

Jmcrae
New Contributor

I am trying to create a policy to install our McAfee EPO agent through and almost have it done but have run into an issue. The app installs into the application folder no problem but needs to be opened for the first time to finish downloading the necessary files and complete the installation (it does all this automatically once the app is opened for the first time). I added a script to the policy, a simple open command to accomplish this and it was successful. The issue is that to open the first time it requires an admin password to do so. I would like to remove the prompt asking for the password so that the rest of the installation would proceed without user intervention. This is the script I'm currently using.

open -a /Applications/McAfeeSmartInstall.app
2 REPLIES 2

mickgrant
Contributor III

have a look into authbuddy to edit your security settings on the app to allow it to open without admin prompt.

ryan_ball
Valued Contributor

This might help:

https://docs.mcafee.com/bundle/agent-5.5.0-product-guide-epolicy-orchestrator/page/GUID-29623690-F155-48FE-AEEA-CE9E50F711C3.html

/Library/McAfee/Agent/bin/cmdagent /h