Checks if the screen lock is enabled and configured to lock the system within 30 minutes or less.
Use the policy below to verify
SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs' AND CAST(data as INTEGER) <= 1800;