Remove Citrix XenDesktop Policy from PowerShell

Source: Internet
Author: User

Tag: blank target style title

When configuring the Citrix XenDesktop policy recently, there are some times when there are 2 policy conflicts when the following error occurs in the policy view:

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/58/ Wkiol1x65cmiov1haaf8wtxuqka386.jpg "" 644 "height=" 366 "/>

When such errors occur, we cannot make policy adjustments or deletions in the GUI interface, and the conflicting policy must be removed through PowerShell.

Because the user policy and the computer policy are placed under a view in the GUI interface after the XenDesktop 7.X, there are times when filtering is done frequently or when the policy cannot be applied.

To remove a policy step:

Open PowerShell with Administrator status

Input ASNP citrix* load Citrix Management module

Input

New-psdrive "Siename" –psprovider citrixgrouppolicy–root \–controller localhost

CD sitename:\

When you enter LS, you will see users and computers, indicating whether the underlying user and computer policies are processed or separated.

Check the error in view for user policy violation, go to the Users directory

Input

CD Users

LS \ \ Can see the name and description information of all policies

Rd ". \policyname"

At this point, the policy will be deleted, re-refresh the GUI interface to find that the original policy has been deleted

Note: If the superscript red place, please enter according to the real name of your environment.

Remove Citrix XenDesktop Policy from PowerShell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.