I am using this script to run the triggers for the policies that have the new apps smart group added.
#!/bin/bash
###
#
# Name: update-all-apps.sh
# Description: Cycles through all third party updates in Jamf and runs them if
# needed by the target Mac.
# Author: Emily KW
# Modified: 2019-01-23
# Notes: Results/output sent to /var/log/jamf.log.
# Does not include patch policies. The final recon, however, will by
# default check for patch policies, but will not run them automatically
# unless you configure patch policies to install automatically.
#
# Usage:
# - Set any update policy in your Jamf Pro Server with a custom trigger
# - Add all custom triggers on separate lines to the APPUPDATE section
# - Add this script to a policy with its own custom trigger and/or
# make available in its own Self Service policy for people to use
#
# Room for improvement:
# - Close each app if the update is required.
#
###
jamf=$(which jamf)
jamfLog="/var/log/jamf.log"
# currentUser=$( python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\\n");' )
timestamp () { date "+%Y-%m-%d %H:%M:%S" ; }
echo "$(timestamp) Checking for third party app updates..." | tee -a "$jamfLog"
APPUPDATE="
UpdateAdobeAcrobat
UpdateAdobeCC
UpdateAdobeReaderES
UpdateBox
UpdateWebex
UpdateWorkspaceUniversal
UpdateDisplayLinkManager
UpdateChrome
UpdateEdge
UpdateTeams
UpdateFirefox
UpdateRectangle
UpdateSnagit
UpdateZoom
updatesafari16.3
"
for TRIGGER in $APPUPDATE
do
echo "$(timestamp) Checking for update policy $TRIGGER" | tee -a "$jamfLog"
"$jamf" policy -event $TRIGGER -forceNoRecon -randomDelaySeconds 0 | tee -a "$jamfLog"
done
echo "$(timestamp) Submitting updated inventory..." | tee -a "$jamfLog"
"$jamf" recon -randomdelayseconds 0
echo "$(times
I am using this script to run the triggers for the policies that have the new apps smart group added.
#!/bin/bash
###
#
# Name: update-all-apps.sh
# Description: Cycles through all third party updates in Jamf and runs them if
# needed by the target Mac.
# Author: Emily KW
# Modified: 2019-01-23
# Notes: Results/output sent to /var/log/jamf.log.
# Does not include patch policies. The final recon, however, will by
# default check for patch policies, but will not run them automatically
# unless you configure patch policies to install automatically.
#
# Usage:
# - Set any update policy in your Jamf Pro Server with a custom trigger
# - Add all custom triggers on separate lines to the APPUPDATE section
# - Add this script to a policy with its own custom trigger and/or
# make available in its own Self Service policy for people to use
#
# Room for improvement:
# - Close each app if the update is required.
#
###
jamf=$(which jamf)
jamfLog="/var/log/jamf.log"
# currentUser=$( python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\\n");' )
timestamp () { date "+%Y-%m-%d %H:%M:%S" ; }
echo "$(timestamp) Checking for third party app updates..." | tee -a "$jamfLog"
APPUPDATE="
UpdateAdobeAcrobat
UpdateAdobeCC
UpdateAdobeReaderES
UpdateBox
UpdateWebex
UpdateWorkspaceUniversal
UpdateDisplayLinkManager
UpdateChrome
UpdateEdge
UpdateTeams
UpdateFirefox
UpdateRectangle
UpdateSnagit
UpdateZoom
updatesafari16.3
"
for TRIGGER in $APPUPDATE
do
echo "$(timestamp) Checking for update policy $TRIGGER" | tee -a "$jamfLog"
"$jamf" policy -event $TRIGGER -forceNoRecon -randomDelaySeconds 0 | tee -a "$jamfLog"
done
echo "$(timestamp) Submitting updated inventory..." | tee -a "$jamfLog"
"$jamf" recon -randomdelayseconds 0
echo "$(times
@SMR1 Are your policies that respond to the UpdateWhatever triggers scoped simply to All Computers, or do they have exclusions for Macs that don't have the app in question installed? If there's no exclusion they're going to install
The policies are set for specific computers and users. The new policy I created that I was trying to deploy the script to run the triggers for the, is also specific computers and users. I initially created 2 groups for each application using what I found in the link below and to deploy to test groups, we just add the test groups to them and they drop off when they're updated. Just wanted to have one policy, so we don't have to disable the policy have the apps are deployed. Was hoping to keep them ongoing, but not recurring and then just stop/start the policy that runs the trigger script.
Using Installomator with Jamf Pro – Scripting OS X