We have installed a Windows Server 2016 Remote Desktop Session Host (actually 1 broker server with 2 session host servers, all Windows Server 2016). Users log in with roaming profiles (stored on the broker server), local profiles are deleted when users log off.

Each time the users log in and try to open a website, they have to choose wich browser they want to use: Google Chrome or IE. The option "always use this program..." is checked. While in their current session, it is not asked any more, but when they logoff and they log back in, they get the question again.

Any one knows how to fix this? This setting should be stored in the users' registry not?

Thanks, Michiel.


The information of the default browser is stored in following registry keys in HKCU or HKEY_CURRENT_USER, which is actually a pointer to HKEY_USERS\ Security ID (SID).



They are REG_SZ values with associated default browser: FirefoxURL / ChromeHTML / IE.HTTP etc.

A new HKEY_CURRENT_USER subtree is created each time a user logs on. The data for the subtree comes from the profile of the current user. If no profile is available, the subtree is built from the user profile settings established for a default user, which are stored in %SystemDrive%\Users\Default\Ntuser.dat.

So, HKCU is stored in user's profile: by default these settings should follow the user as local %USERPROFILE% gets synchronized with the roaming profile at logoff, if you have deployed roaming user profiles correctly.

However, for reducing the size of roaming profiles there are options for limiting the profile size with Profile Quotas and Excluded Folders.

You should check that you don't accidentally exclude ntuser.dat in

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ExcludeProfileDirs"="AppData\\Local;AppData\\LocalLow;$Recycle.Bin;OneDrive;Work Folders"

Then, look inside User Configuration\Administrative Templates\System\User Profiles on the GPOs applied to the roaming profile users:

  • Exclude directories in roaming profile

    This policy setting lets you exclude folders that are normally included in the user's profile. As a result, these folders do not need to be stored by the network server on which the profile resides and do not follow users to other computers.

    Note: When excluding content from the profile you should try to exclude the narrowest set of data that will address your needs. For example, if there is one application with data that should not be roamed then add only that application's specific folder under the AppData\Roaming folder rather than all of the AppData\Roaming folder to the exclusion list.

  • Limit profile size

    This policy setting sets the maximum size of each user profile and determines the system's response when a user profile reaches the maximum size. This policy setting affects both local and roaming profiles.

    If you enable this policy setting, you can:

    • Set a maximum permitted user profile size.
    • Determine whether the registry files are included in the calculation of the profile size.

Check that these settings are rational and not limiting the synchronization of ntuser.dat.

  • It seems to be solved by disabling the GPO setting to delete roaming profiles at logoff. This doesn't realy sounds logical to me, because I would suspect this "default browser" setting to be in the current users settings and thus save in the roaming profile. – Mickeybyte May 2 '17 at 18:32

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.