XenApp® Policies

Exclusive offer: get 50% off this eBook here
Citrix® XenApp® 6.5 Expert Cookbook

Citrix® XenApp® 6.5 Expert Cookbook — Save 50%

Over 125 recipes that enable you to configure, administer, and troubleshoot a XenApp® infrastructure for effective application virtualization with this book and ebook

$34.99    $17.50
by Esther Barthel MSc | January 2014 | Cookbooks Enterprise Articles

In this article by Esther Barthel MSc, the author of book Citrix® XenApp® 6.5 Expert Cookbook, we will cover the following topics:

  • Creating a XenApp Computer or User policy
  • Adding filters to a policy
  • Comparing XenApp policies and templates
  • Simulating connection scenarios with Citrix® policies
  • Configuring policy priorities and exceptions

(For more resources related to this topic, see here.)

Creating a XenApp® Computer or User policy

This recipe will show you how to create policies in general to configure Computer and User settings for Citrix XenApp.

Getting ready

Before configuring computer and user policies, you have to decide which tool to use to create and configure Citrix policies. As of Citrix XenApp 6.x, you can use both the Microsoft Group Policy Management Console (GPMC) as Citrix's AppCenter to create policies. Policies can be managed from only one of the consoles as policies created with GPMC are not visible in AppCenter and vice versa.

When using GPMC, a public hotfix must be installed on the machine that is running on the management console. The latest version can be found at Citrix's Knowledge Center: http://support.citrix.com/product/xa/v6.5_2008r2/hotfix/general/public/.

How to do it...

To create a Citrix policy that is applied to the XenApp servers with AppCenter, follow these steps:

  1. Open the Citrix XenApp Management Console AppCenter (Start | Administrative Tools | Citrix | Management Consoles).
  2. Navigate to XenApp | <FarmName> | Policies in the left pane.
  3. Click on the Computer tab in the Policies pane.
  4. Click on New to create a new policy.
  5. Enter values in the Name and Description fields for the policy and click on Next.
  6. Select a category in the left pane.
  7. Add a policy setting by clicking on Add in the right pane for each setting.
  8. Configure the policy setting and click on OK.
  9. Repeat steps 6 to 8 to add more policy settings.
  10. Click on Next when all policy settings are configured.
  11. Configure the filter settings and click on Next.

    The filter options are addressed in the next recipe.

  12. Ensure the Enable this policy option is selected and click on Create.

Computer policies are applied to XenApp servers when the server is started or when policy updates are applied to the XenApp server. To force the policies to be applied immediately to the XenApp server, run the following command on the server:

gpupdate /force

To create a Citrix policy that is applied to the XenApp user session with AppCenter, follow these steps:

  1. Open the Citrix XenApp management console AppCenter (Start | Administrative Tools | Citrix | Management Consoles).
  2. Navigate to XenApp | <FarmName> | Policies in the left pane.
  3. Click on the User tab in the Policies pane.
  4. Click on New to create a new policy.
  5. Enter values in the Name and Description fields for the policy and click on Next.
  6. Select a category in the left pane.
  7. Add a policy setting by clicking on Add in the right pane for each setting.
  8. Configure the policy setting and click on OK.
  9. Repeat steps 6 to 8 to add more policy settings.
  10. Click on Next when all policy settings are configured.
  11. Configure the filter settings and click on Next.

    Filter options are addressed in the next recipe.

  12. Ensure the Enable this policy option is selected and click on Create.

Just like Windows User policies, Citrix User policies are applied when the user session starts.

There's more...

You can read more on creating Citrix policies at Citrix's eDocs at http://support.citrix.com/proddocs/topic/xenapp65-admin/ps-admin-publishing-policies-create-all.html.

See also

  • The Adding filters to a policy recipe
  • The Comparing XenApp® policies and templates recipe
  • The Simulating connection scenario's with Citrix® policies recipe
  • The Configuring policy priorities and exceptions recipe

Adding filters to a policy

This recipe will show you how to add filters to a policy to apply the policy to a selective group of XenApp servers or user sessions. Policies that are not configured with a filter apply to all XenApp servers in the farm and to all logged on users for a XenApp session. This will have the same effect as using the default unfiltered computer or user policy that cannot have a filter applied to it.

How to do it...

You can apply different policy filters to computer or user policies. To add filters to a Citrix Computer policy follow these steps:

  1. Create a new policy by following steps 1 to 10 from the previous recipe.
  2. Click on Add to configure the Organizational Unit (OU) or Worker Group filter.

  3. Click on Add to configure a filter element.
  4. Configure the mode (allow or deny) and use Browse to find the correct worker group or OU.
  5. Click on OK to add the filter element.
  6. Repeat steps 3 to 5 to add more filter elements.
  7. Click on OK to add the filter to the policy.
  8. Repeat steps 2 to 7 to configure multiple filters for the policy.
  9. Click on Next.
  10. Ensure the Enable this policy option is selected and click on Create.

To add filters to a Citrix User policy follow these steps:

  1. Create a new policy by following the steps 1 to 10 from the previous recipe.
  2. Click on Add to configure Access Control, Branch Repeater, Client IP Address, Client Name, Organizational Unit (OU), User or Group, or Worker Group filter.

  3. Click on Add to configure a filter element.
  4. Configure the mode (allow or deny) and use Browse to find the correct OU, User or Group, or Worker Group, or enter filter-specific settings for Client IP Address, Name, Access Control, or Branch Repeater.
  5. Click on OK to add the filter element.
  6. Repeat steps 3 to 5 to add more filter elements.
  7. Click on OK to add the filter to the policy.
  8. Repeat steps 2 to 7 to configure multiple filters for the policy.
  9. Click on Next.
  10. Ensure the Enable this policy option is selected and click on Create.

See also

  • The Creating a XenApp® Computer or User policy recipe
  • The Comparing XenApp® policies and templates recipe
  • The Simulating connection scenarios with Citrix® policies recipe
  • The Configuring policy priorities and exceptions recipe

Comparing XenApp® policies and templates

This recipe will show you how to compare policy settings with other policies or policy templates by using Citrix's management console AppCenter to see if policies contain similar settings, contradicting settings, or have no correlation whatsoever.

How to do it...

To compare policies with templates in AppCenter, follow these steps:

  1. Open the Citrix XenApp management console AppCenter (Start | Administrative Tools | Citrix | Management Consoles).
  2. Navigate to XenApp | <FarmName> | Policies in the left pane.
  3. Click on the Templates tab in the Policies pane.

  4. Click on the Compare View icon on the right-hand side of the menu bar.

  5. Select the policies that you want to compare and click on Compare.

    To check the configured policy settings against default policy settings for the XenApp Farm, select a policy, and select the Compare to setting defaults option.

The policy settings from the selected policies are shown and can easily be compared.

To add additional policies to the comparison or check all available policy settings, click on Configured Settings and select either Add/Remove Columns or Show All Settings.

There's more...

You can read more about comparing policies and templates at Citrix's eDocs: http://support.citrix.com/proddocs/topic/xenapp65-admin/ps-policies-templates-compare.html.

See also

  • The Creating a XenApp® Computer or User policy recipe
  • The Adding filters to a policy recipe
  • The Simulating connection scenarios with Citrix® policies recipe
  • The Configuring policy priorities and exceptions recipe
Citrix® XenApp® 6.5 Expert Cookbook Over 125 recipes that enable you to configure, administer, and troubleshoot a XenApp® infrastructure for effective application virtualization with this book and ebook
Published: January 2014
eBook Price: $34.99
Book Price: $57.99
See more
Select your format and quantity:

Simulating connection scenarios with Citrix® policies

This recipe will show you how to generate a report on the applied policies for a user or computer by running a simulation with the Citrix Group Policy Modeling Wizard.

How to do it...

To check the applied policy settings by simulating a user session with AppCenter, follow these steps:

  1. Open the Citrix XenApp Management Console AppCenter (Start | Administrative Tools | Citrix | Management Consoles).
  2. Navigate to XenApp | <FarmName> | Policies in the left pane.
  3. Click on the Run the modeling wizard option in the Actions pane.
  4. Click on Next.
  5. Configure the following options:
    • Show DCs in this domain: <domain>
    • Process the simulation on this DC: Any available DC...
  6. Click on Next.
  7. Configure the User and/or Computer information for the simulation and click on Next.
  8. Configure filter selections you want to apply to the simulation and click on Next.

  9. Configure the Advanced Simulation Options and click on Next.

  10. Select the Summary of Selections options and click on Run.
  11. Click on Close after the simulation is run to close the wizard and view the results.

You are taken to the Modeling Results tab. This tab shows a report of the Citrix policies that are and are not applied. For each Computer and User policy, the settings are listed with the resulting value and the winning policy responsible for the setting.

See also

  • The Creating a XenApp® Computer or User policy recipe
  • The Adding filters to a policy recipe
  • The Comparing XenApp® policies and templates recipe
  • The Configuring policy priorities and exceptions recipe

Configuring policy priorities and exceptions

This recipe will show you how to change policy priorities and exceptions with the Citrix management console AppCenter.

How to do it...

To change the priority of a policy with AppCenter, follow these steps:

  1. Open the Citrix XenApp management console AppCenter (Start | Administrative Tools | Citrix | Management Consoles).
  2. Navigate to XenApp | <FarmName> | Policies in the left pane.
  3. Click on the Computer or User tab in the Policies pane.
  4. Select a policy and use Higher and Lower to change the priority of the policy. The value 1 represents the highest priority.

To create an exception for a policy with AppCenter, follow these steps:

  1. Open the Citrix XenApp Management console AppCenter (Start | Administrative Tools | Citrix | Management Consoles).
  2. Navigate to XenApp | <FarmName> | Policies in the left pane.
  3. Click on the Computer or User tab in the Policies pane.
  4. Select a policy and use Edit to change the policy settings.
  5. Click on the Filters tab and click on Add or Edit to change the filter configuration.
  6. Click on Add or Edit to change the filter element configuration.
  7. Set the Mode to deny ensuring the policy settings are not applied for the configured User, (Worker) Group or Organizational Unit, thus creating an exception for the policy.
  8. Click on OK to apply the filter element configuration.
  9. Click on OK to apply the filter configuration.
  10. Click on OK to apply the policy configuration.

How it works...

Each configured Citrix policy is given a priority to determine the order in which policies are applied when multiple policies are configured. By default each newly created policy is given the lowest priority (or highest priority number). The policy with priority number 1 has the highest priority.

When a user logs on to a Citrix session, all policies that match the configured filters for the connection, the client device and the user are determined and are applied in the order of their priority. Settings are merged according to the priority and whether a setting is disabled or enabled.

  • When multiple policies contain the same settings, the policy with the highest priority determines the active setting
  • When multiple policies contain the same setting, a policy setting set to disabled overrides the same policy setting set to enabled in a policy with a lower priority

For example:

  • Policy A (prio = 2) contains a setting for the XML Service port to 8080
  • Policy B (prio = 1) contains a setting for the XML Service port to 80

These policies result in a setting for the XML service on the Citrix XenApp server to port 80, as is shown in the following screenshot:

  • Policy A (prio = 2) disables local drive redirection
  • Policy B (prio = 1) enables local drive redirection

There's more...

You can read more on policy priorities and exceptions at Citrix's eDocs: http://support.citrix.com/proddocs/topic/xenapp65-admin/ps-admin-policies-priority-exceptions-all.html.

See also

  • The Creating a XenApp® Computer or User policy recipe
  • The Adding filters to a policy recipe
  • The Comparing XenApp® policies and templates recipe
  • The Simulating connection scenario's with Citrix® policies recipe

Summary

In this article we discussed about creating XenApp Computer and User policy, adding filters to the policy, Comparing policies and templates, and different priorities and exceptions. Also we discussed about practical guidelines for XenApp® policy configurations for printing, shadowing, assigning load evaluators, redirecting client drivers, and enhancing user experience.

Resources for Article:


Further resources on this subject:


Citrix® XenApp® 6.5 Expert Cookbook Over 125 recipes that enable you to configure, administer, and troubleshoot a XenApp® infrastructure for effective application virtualization with this book and ebook
Published: January 2014
eBook Price: $34.99
Book Price: $57.99
See more
Select your format and quantity:

About the Author :


Esther Barthel MSc

Esther Barthel MSc has been working in different roles and functions as an IT consultant since she finished her Masters degree in Computer Science in 1997. She has worked as a web developer, database administrator, and server administrator until she discovered how Server-Based Computing ( SBC ) combined servers, desktops, and user experience in one solution. She has been specializing in virtualization solutions such as SBC, VDI, application, and server virtualization for over seven years now and currently works as a senior consultant at PepperByte, where she designs and implements Citrix® solutions for both small-business and large-enterprise infrastructures scaling from 100 to 15,000 users.

Ever since she hosted introduction days for technical female student candidates, Esther has been sharing her passion and knowledge for IT. What started out as small internal meetings to report on the latest technologies is growing from technical blog posts into international presentations at Citrix® User Groups and events like E2EVC. There's no surprise that she has now taken up the challenge to write her first technical book, Citrix® XenApp 6.5 Expert Cookbook, for a well-known publisher, Packt Publishing , offering a selection of recipes (how-to's) that allow experienced Citrix® XenApp® administrators to automate, monitor, troubleshoot, and manage advanced XenApp® infrastructures.

Esther is a Citrix Certified Professional - Apps and Desktops ( CCP-AD), Citrix Certified Integration Architect ( CCIA), and RES Software Certified Professional ( RCP ).

You can follow her on social media on her blog (http://www.virtues.it), on Twitter at @virtuEs_IT, or contact her directly through e-mail, techwriting@cognitionit.com.

Books From Packt


Getting Started with Citrix XenApp 6
Getting Started with Citrix XenApp 6

Instant Citrix XenApp
Instant Citrix XenApp

Citrix XenApp Performance Essentials
Citrix XenApp Performance Essentials

Getting Started with Citrix XenApp 6.5
Getting Started with Citrix XenApp 6.5

Citrix XenServer 6.0 Administration Essential Guide
Citrix XenServer 6.0 Administration Essential Guide

Citrix XenDesktop 5.6 Cookbook
Citrix XenDesktop 5.6 Cookbook

Getting Started with Citrix VDI-in-a-Box
Getting Started with Citrix VDI-in-a-Box

Getting Started with Citrix® CloudPortal™
Getting Started with Citrix® CloudPortal™


Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software