Skip to content

Instantly share code, notes, and snippets.

View loyaltyarm's full-sized avatar

Nick Cobb loyaltyarm

View GitHub Profile
@loyaltyarm
loyaltyarm / test_auto_lock.mobileconfig
Last active February 17, 2017 20:42
Auto-lock custom config profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>forcePIN</key>
<false/>
<key>allowSimple</key>
# Append to defaults.yaml
managedmac::execs::commands:
disable_bluetooth_assistant_popups_keyboard:
command: "/usr/bin/defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekKeyboard '0'"
disable_bluetooth_assistant_popups_mouse:
command: "/usr/bin/defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekPointingDevice '0'"
disable_bluetooth:
command: "/usr/bin/defaults write /Library/Preferences/com.apple.Bluetooth ControllerPowerState '0'"
unload_bluetooth_service: