Last active
August 10, 2019 19:34
-
-
Save lisp3r/6b4ef014883f14eb7a39fa24f84da293 to your computer and use it in GitHub Desktop.
Disable Screensaver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>PayloadDisplayName</key> | |
<string>Security & Privacy</string> | |
<key>PayloadEnabled</key> | |
<true/> | |
<key>PayloadIdentifier</key> | |
<string>com.__YOUR_NAME__.config.screensaver</string> | |
<key>PayloadType</key> | |
<string>com.apple.screensaver</string> | |
<key>PayloadUUID</key> | |
<string>966eb7be-81bd-f8cc-f3e3-078d93f1b4a4</string> | |
<key>PayloadVersion</key> | |
<integer>1</integer> | |
<key>askForPassword</key> | |
<true/> | |
</dict> | |
<dict> | |
<key>PayloadDisplayName</key> | |
<string>Security & Privacy</string> | |
<key>PayloadEnabled</key> | |
<true/> | |
<key>PayloadIdentifier</key> | |
<string>com.__YOUR_NAME__.config.screensaver</string> | |
<key>PayloadType</key> | |
<string>com.apple.screensaver</string> | |
<key>PayloadUUID</key> | |
<string>966eb7be-81bd-f8cc-f3e3-078d93f1b4a5</string> | |
<key>PayloadVersion</key> | |
<integer>1</integer> | |
<key>askForPasswordDelay</key> | |
<integer>2147483647</integer> | |
</dict> | |
</array> | |
<key>PayloadDescription</key> | |
<string>Disable screensaver for 10.14</string> | |
<key>PayloadDisplayName</key> | |
<string>Disable screensaver</string> | |
<key>PayloadIdentifier</key> | |
<string>com.__YOUR_NAME__.config.screensaver</string> | |
<key>PayloadOrganization</key> | |
<string>__YOUR_NAME__</string> | |
<key>PayloadRemovalDisallowed</key> | |
<false/> | |
<key>PayloadScope</key> | |
<string>System</string> | |
<key>PayloadType</key> | |
<string>Configuration</string> | |
<key>PayloadUUID</key> | |
<string>0dc319a0-c331-0131-eeb5-000c294ab81b</string> | |
<key>PayloadVersion</key> | |
<integer>1</integer> | |
</dict> | |
</plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/bin/profiles -I -F disablescreensaver.mobileconfig | |
#/usr/bin/profiles -I -F disablescreensaver.mobileconfig -U username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Configuration Profile Reference [p. 82]:
askForPasswordDelay - number of seconds to delay before the password will be required to unlock or stop the screen saver. A value of 2147483647 (eg 0x7FFFFFFF) can be used to disable this requirement, and on 10.13, the payload is one of the only ways of disabling the feature. Note that askForPassword must be set to true to use this option.