Files
MacAdmin/Jamf Pro/Extension Attributes/jamf_ea_ARDState.sh
Zack T e370d43cd5 v1.0 = Initial Version
+ Initial Version
2018-10-30 12:40:34 -07:00

18 lines
602 B
Bash

#!/bin/bash
###################################################################################################
# Script Name: jamf_ea_ARDState.sh
# By: Zack Thompson / Created: 10/30/2018
# Version: 1.0 / Updated: 10/30/2018 / By: ZT
#
# Description: A Jamf Extension Attribute to grab the Remote Management (ARD) State.
#
###################################################################################################
if [[ $(/bin/ps ax | /usr/bin/grep --count --ignore-case "[Aa]rdagent") -eq 1 ]]; then
echo "<result>Enabled</result>"
else
echo "<result>Disabled</result>"
fi
exit 0