The Citrix Group Policy Fails to Apply with EventID 1085 (UserEnv Error)

The Citrix Group Policy Fails to Apply with EventID 1085 (UserEnv Error)

book

Article ID: CTX133567

calendar_today

Updated On:

Description

Userenv error 1085 occurs intermittently when a user logs on to a Virtual Desktop Agent (VDA) and the following entry is written to the application event log:
 
Event ID: 1085
Source: Userenv
Description: The Group Policy client-side extension Citrix Group Policy failed to execute. Please look for any errors reported earlier by that extension.
 
If this error occurs, the Citrix Group Policy is not applied to the VDA.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

Add the Remote Desktop Service (TermService) to the service dependency list for the Citrix Group Policy Engine.
 
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.
  1. Open the registry editor on the VDA.

  2. Navigate to:  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CitrixCseEngine

  3. Modify the DependOnService value, by adding TermService to the existing value.

    User-added image
  4. Restart the VDA.

  5. Review the properties of the Citrix Group Policy Engine after the VDA has restarted to verify the dependency on Remote Desktop Service is configured.

    User-added image

Problem Cause

This error occurs following start or restart of VDA if the Citrix Group Policy Engine (CitrixCseEngine) attempts to start before Remote Desktop Services (TermService) has started. To process and apply Citrix policies on the VDA, the Citrix Group Policy Engine uses the Terminal Services API during the user logon process.  If Remote Desktop Services is not running when the user connects to and logs on to the VDA, the Citrix Group Policy fails to apply.
 

Issue/Introduction

This article provides a resolution to the following error: The Citrix Group Policy Fails to Apply with EventID 1085 (UserEnv Error)