Documentation Center

Changing the Local Group Policy

Set the group policy so that Windows 2012R2 does not forcefully unload the registry.

About this task

A new User Profile Service functionality built into the OS by default forces the unload of the user profile on Windows 2012R2 when the user logs off. This results in, for instance, a COM+ application to stop working on Windows Server 2012R2 when the identity user logs off and the COM+ application can no longer read registry keys in the profile of the identity user. The policy setting Do not forcefully unload the user registry at user logoff counters the default behavior of Windows 2012R2. When enabled, Windows 2012R2 does not forcefully unload the registry and waits until no other processes are using the user registry before it unloads it.

Procedure

  1. As an Administrator user, click the then in the Windows Powershell icon in the lower left next to the Server Manager icon.
  2. At the command prompt, type gpedit.msc.
    A Local Group Policy Editor window displays.
  3. In the left pane, open Local Computer Policy > Computer Configuration > Administrative Templates > System > User Profiles
  4. In the right pane, double-click on Do not forcefully unload the user registry at user logoff.
  5. In the resulting window, click in the radio button Enabled.
  6. Click OK.