You can use "Patch Reporting" smart group criteria to do this without the need for an extra EA
Awesome Shannon, I had no idea that existed. That's going to make life a lot easier! Many thanks!
You can use this solution for an extension attribute:
#!/bin/bash
##############################################################################
# A script to collect the version of Jamf Connect Login installed. #
# If Jamf Connect Login is not installed "Not Installed" will return back #
##############################################################################
NOT_INSTALLED="Not Installed"
RESULT=""
if [ -a /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist ]
then
RESULT=$( /usr/bin/defaults read /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist CFBundleShortVersionString )
else
RESULT="$NOT_INSTALLED"
fi
/bin/echo "<result>$RESULT</result>"
You can use this solution for an extension attribute:
#!/bin/bash
##############################################################################
# A script to collect the version of Jamf Connect Login installed. #
# If Jamf Connect Login is not installed "Not Installed" will return back #
##############################################################################
NOT_INSTALLED="Not Installed"
RESULT=""
if [ -a /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist ]
then
RESULT=$( /usr/bin/defaults read /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist CFBundleShortVersionString )
else
RESULT="$NOT_INSTALLED"
fi
/bin/echo "<result>$RESULT</result>"
Thank you, this is awesome! Now I can have the Jamf Connect version display when producing reports! Much appreciated.