One Program, One Session: Streamlining Logins on Your RDS Server
Tired of users getting distracted by a cluttered desktop or wasting time launching essential apps when they log in to your RDS server? This guide shows you how to streamline the login process and boost user productivity by automatically launching a single program upon login.
Note: This method applies to both Windows Server 2008 and 2012, but requires an additional registry tweak for Server 2016 and 2019. Managing multiple users on a Remote Desktop Services (RDS) server can be a challenge. Often, you'll want to automatically run a specific program when a user logs in to their session. This can help streamline the user's experience and ensure they have access to the tools they need right away.
Step 1: Specify the Program (Windows Server 2008 & 2012)
- Log in as an administrator.
- Open AD Users and Computers from Administrative Tools.
- Double-click the user account you want to configure.
- Go to the Environment tab.
- Check the box "Start the following program at logon:"
- Enter the full path to your desired program (e.g.,
C:\Windows\System32\notepad.exe
- Back up your registry as a precaution.
- Open Regedit.
- Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Create a new DWORD value named "fQueryUserConfigFromDC" and set it to 1.
- HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Name: fQueryUserConfigFromDC
Type: Reg_DWORD
Value: 1 (Decimal) - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\<Winstation Name>
(replace<Winstation Name>
with the actual name of your winstation). - Create a new DWORD value named "fQueryUserConfigFromDC" and set it to 1.
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\<Winstation Name>\
Name: fQueryUserConfigFromDC
Type: Reg_DWORD
Value: 1 (Decimal) - Reboot your server.
Bonus: Group Policy Approach (Optional)
For centralized management, you can use Group Policy to apply this setting to multiple users or even all users on the server. Here's how:
- Open Group Policy Editor.
- Navigate to: User Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment
- Enable the setting "Start a Program on Connection" and enter the path to your desired program.
- Disable the setting "Always Show Desktop on Connection" (optional but recommended for a cleaner experience).
- Run "gpupdate /force" in an elevated command prompt and/or reboot the server.
Benefits:
- Streamlined login experience: Users immediately start working with the needed application, saving time and boosting productivity.
- Reduced distractions: No cluttered desktop or unnecessary applications to close.
- Centralized management: Use Group Policy for wider implementation and easier maintenance.