Changes to policies outside of console, (PowerShell or management tools from previous version), resulted in a discrepancy between policies

Changes to policies outside of console, (PowerShell or management tools from previous version), resulted in a discrepancy between policies

book

Article ID: CTX229307

calendar_today

Updated On:

Description

Error: Changes made to policies outside of this console. such as in PowerShelI or management tools from previous versions. resulted in a discrepancy between policies.

Resolution

Apply the following PowerShell command sequence to list policies:

  1. Open a PowerShell window.
    Run as an administrator to avoid potential issues with permissions.
  2. Add the Citrix Group Policy provider snap-in:
    Add-PSSnapin Citrix.Common.GroupPolicy    or      ASNP Citrix*
  3. Mount a drive letter for the provider, this examples uses Site as the drive:
    New-PSDrive Site -PSProvider CitrixGroupPolicy -root \ -Controller localhost
  4. Go to the user policy:
    CD Site:\User
  5. Run a dir or ls command to see your policies.
  6. Go to the Computer policy:
    CD Site:\Compuer
  7. Run a ls command to see policies.
  8. Rename the policy listed with the same under user and computer policies using the REN command.
Example: ren 'Old Name' 'New Name_Computer'.

Problem Cause

The most complicated part of determining if two policies can be merged is the object assignments. First, defining if two object assignments are the same is a challenge. We have many assignment types and each type contains different data. The data are all in different formats and the relationships among the values of each assignment can be complex. For example, an assignment that involves a domain user or group name can be hard to resolve.

We opted to use the most conservative measures to ensure the equality of two assignments. We consider two assignments are the same if we are 100% certain that the two assignments have the same values. For all other cases, we consider the two assignments different.

When the object assignments are different for two policies, the policies cannot be merged.

If any two policies of the same name cannot be merged for any reason, the UI displays a message about the problem and the problem needs fixing.

Issue/Introduction

Error: Changes made to policies outside of this console. such as in PowerShelI or management tools from previous versions. resulted in a discrepancy between policies.