Run app from script without user intervention
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
05-21-2019
02:57 PM
- last edited on
03-04-2025
08:24 AM
by
kh-richa_mig
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-21-2019 04:54 PM
have a look into authbuddy to edit your security settings on the app to allow it to open without admin prompt.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2019 07:32 AM
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
