Deleting XenDesktop Policy through PowerShell.
When you click on Policy in XenDesktop 7.1 Studio, the following screen appears:
Use PowerShell to delete the policy causing the issue:
Open PowerShell on the controller and type add-pssnapin citrix.*.
To mount the policies, type new-psdrive “Mysite” –psprovider CitrixGroupPolicy –Root \ -controller localhost.
Note: “Mysite” is the name of the psdrive you are creating, so it can be anything.Type cd mysite:\.
Type dir, and find the location of your policy.
In this example, user container is being used, so type Cd user.
To locate name of the policy which is causing the issue, type dir.
In the preceding image, the policy name is Policy1, so to remove it, type Rd “.\Policy1”.
Go back to the Studio, click Policy > Refresh.
You will now be able to see the rest of the policies and can modify/create once more.
A policy is being modified from gpo editor as well as from Studio with mismatched settings.
A policy has mismatched setting in User and Computer section of policy.