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."