Skip to content

Instantly share code, notes, and snippets.

@GrumpyChunks
Last active September 15, 2023 05:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GrumpyChunks/bb7b58c63883af8f137a1264078d30ca to your computer and use it in GitHub Desktop.
Save GrumpyChunks/bb7b58c63883af8f137a1264078d30ca to your computer and use it in GitHub Desktop.
Fix to stop Windows RDP clients from suppressing the remote system when the session is minimised.

Summary

This command will create the required registry entry to prevent RDP clients from suppressing the remote system when the client is minimised.

Why is this needed?

Say for example that you are running caffeine on the remote system to prevent the screen locking, if you then minimise the RDP session, then RDP suppression would normally kick in, which then prevents caffeine from keeping the system unlocked. Similar issues may exist for other software running on the system.

Usage

Run the following command as administrator.

reg add "HKLM\Software\Microsoft\Terminal Server Client" /v RemoteDesktop_SuppressWhenMinimized /t REG_DWORD /d 2

Note, this didn't work for me in Windows 11, but have attempted the following

For 64-bit Windows (1). Find the registry keys:

HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client

(2). Create a DWORD value with the name RemoteDesktop_SuppressWhenMinimized and set its value to 2.

Note: In specific configurations, a policy or a setting which force HKEY_CURRENT_USER to override the HKEY_LOCAL_MACHINE, you might have to modify the above registry keys under HKEY_CURRENT_USER instead."

(source : https://social.technet.microsoft.com/Forums/en-US/0dd103cc-0da3-4d78-9a79-7aaf8598184c/using-remotedesktopsuppresswhenminimized-for-a-nested-rdp-session)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment