Skip to content

Instantly share code, notes, and snippets.

@Nora-Ballard
Created February 20, 2014 22:46
Show Gist options
  • Select an option

  • Save Nora-Ballard/9124876 to your computer and use it in GitHub Desktop.

Select an option

Save Nora-Ballard/9124876 to your computer and use it in GitHub Desktop.
Sets some basic security settings on OS X.
-- Security Control: Enable 'Use secure virtual memory'
do shell script "defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -bool yes" with administrator privileges
-- Security Control: Disable remote control infrared receiver
do shell script "defaults write /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabled -bool no" with administrator privileges
-- Security Control: Disable automatic login
do shell script "defaults write /Library/Preferences/.GlobalPreferences com.apple.autologout.AutologoutDelay -int 0" with administrator privileges
-- Security Control: Set the login options to display name and password in the login window.
do shell script "defaults write /Library/Preferences/com.apple.loginwindow SHOWFULLNAME -bool yes" with administrator privileges
-- Security Control: Disable fast user switching.
do shell script "defaults write /Library/Preferences/.GlobalPreferences MultipleSessionEnabled -bool NO" with administrator privileges
-- Security Control: Set Login Banner Text
set LoginwindowText to "<Add Banner Text Here>"
do shell script "defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText '" & LoginwindowText & "'" with administrator privileges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment