v1.0 = Initial Version

+ Initial Version
This commit is contained in:
Zack T
2018-10-30 12:46:06 -07:00
parent 13c7f7b01c
commit d86b8fd3d5

View File

@@ -0,0 +1,18 @@
#!/bin/bash
###################################################################################################
# Script Name: jamf_ea_SSHState.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 Login (SSH) State.
#
###################################################################################################
if [[ $(/usr/sbin/systemsetup -getremotelogin) == "Remote Login: Off" ]]; then
echo "<result>Disabled</result>"
else
echo "<result>Enabled</result>"
fi
exit 0