PSM Screensaver/Machine locks caused PSMConnect/PSMAdminConnect to be locked
Symptom
Even though the screensaver settings for PSMConnect are set as recommended in the installation guide under “Disable the Screen Saver for the PSM Local Users”, the screensaver is still locking users out.
Environment
9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;14.2;14.6 PAS - PSM
- Windows Server 2012/2016
- Windows 2019: Domain GPOs should be checked, as they now requires domain PSM users for RDS licensing.
Cause
Starting from Windows Server 2012, the Local Security Policy added options for Machine Inactivity Limit and Screen saver timout. This setting may be set to something other than “Not Defined” or “0” on the PSM server.
We also need to keep in mind that when applying domain PSM users due to Windows 2019's RDS license changes, we should apply the local policies on local PSMConnect/PSMAdminConnect on the domain ones.
Resolution
Local policies:
- On the PSM server, open GPEdit.msc
- Navigate to Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options
- Change “Interactive Logon: Machine Inactivity Limit” to 0
- Navigate to User Configuration\Administrative Templates\Control Panel\Personalization
- Change "Screen saver timeout" to 0
- From the DC, run gpedit.msc
- Locate the policy that is applied to the OU
- Navigate to Computer Configuration > Security Settings > Local Policies > Security Options
- Change “Interactive Logon: Machine Inactivity Limit” to 0
- Navigate to User Configuration\Administrative Templates\Control Panel\Personalization
- Change "Screen saver timeout" to 0
- Save and force a gpupdate on the PSMServers.
But what happens if the customer insisted that their security policy requires the “Interactive Logon: Machine Inactivity Limit” to be enabled? This is their security baseline that cannot be removed?
In this case, we may explore to implement the idle session timeout settings:
- From either domain or local gpo
- Navigate to Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits
- Set time limit for active but idle Remote Desktop Services sessions — the policy allows idle RDP sessions to be terminated that have no user input (like moving a mouse or typing something on a keyboard);
- Set the above policy to an number that is lower than the “Interactive Logon: Machine Inactivity Limit” value.
- Doing this should disconnect/logout the idle RDP session, before the machine/screensaver lock comes into place. Thus preventing the lockscreen to be shown to the users.
Additional Information
Details
SYMPTOM:
Even though the screensaver settings for PSMConnect are set as recommended in the installation guide under “Disable the Screen Saver for the PSM Local Users”, the screensaver is still locking users out.
PROBLEM:
Starting with Windows Server 2012, the Local Security Policy added options for Machine Inactivity Limit and Screen saver timout. This setting may be set to something other than “Not Defined” or “0” on the PSM server.
SOLUTION:
- On the PSM server, open SecPol.msc
- Navigate to Security Settings > Local Policies > Security Options
- Change “Interactive Logon: Machine Inactivity Limit” to 0
- Navigate to User Configuration\Administrative Templates\Control Panel\Personalization
- Change "Screen saver timeout" to 0