My boss wants the infrared receiver disabled on all our Macs that support this feature.
Does anyone have an example of an extension attribute so I can scope the Macs to verify the that all of them get the infrared disabled.
Thanks!
Corbin
My boss wants the infrared receiver disabled on all our Macs that support this feature.
Does anyone have an example of an extension attribute so I can scope the Macs to verify the that all of them get the infrared disabled.
Thanks!
Corbin
Best answer by denmoff
This seems to do the trick for me.
#!/bin/bash
ir_check=$(/usr/bin/defaults read /Library/Preferences/com.apple.driver.AppleIRController|/usr/bin/grep DeviceEnabled|/usr/bin/awk '{print $3}')
if [[ "$ir_check" == "0;" ]]; then
echo "<result>Disabled</result>"
else
echo "<result>Enabled</result>"
fiEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.