Ensure a password is required to wake the computer from sleep or screen saver is enabled
search

Ensure a password is required to wake the computer from sleep or screen saver is enabled

Checks that password is required to wake the computer from sleep or screen saver is enabled.

Check

Use the policy below to verify

SELECT 1 WHERE 
  EXISTS (
    SELECT 1 FROM managed_policies WHERE 
        domain='com.apple.screensaver' AND 
        name='askForPassword' AND 
        (value = 1 OR value = 'true') AND 
        username = ''
    )
  AND EXISTS (
    SELECT 1 FROM managed_policies WHERE 
        domain='com.apple.screensaver' AND 
        name='askForPasswordDelay' AND 
        value <= 5 AND 
        username = ''
    )
  AND NOT EXISTS (
    SELECT 1 FROM managed_policies WHERE 
        domain='com.apple.screensaver' AND 
        name='askForPassword' AND 
        (value != 1 AND value != 'true')
    )
  AND NOT EXISTS (
    SELECT 1 FROM managed_policies WHERE 
        domain='com.apple.screensaver' AND 
        name='askForPasswordDelay' AND 
        value > 5
    );  

Platform

macOS Windows Linux ChromeOS

Share

Share this article on Hacker News Share this article on LinkedIn Share this article on Twitter