Information
This policy setting specifies whether or not the user is prompted for a password when the system resumes from sleep.
If you enable or do not configure this policy setting, the user is prompted for a password when the system resumes from sleep.
If you disable this policy setting, the user is not prompted for a password when the system resumes from sleep.
Solution
Policy Path: System\Power Management\Sleep Settings
Policy Setting Name: Require a password when a computer wakes (plugged in)