- Optimizing User Sessions For Xenapp 6all About Citrix Using
- Optimizing User Sessions For Xenapp 6all About Citrix Download
Additional User Profile Options
In addition to these basic profile types provided by Microsoft, there are other profile options that can be applied in a XenApp environment. These include the following:Multiple Profiles
Citrix User Profile Management
Other
Citrix User Profile Management is a profile type that supersedes all other profiles for the user and is a unique type of profile. It addresses “last write wins” wins issues by only capturing the changes and recording those changes within the profile, rather than writing the entire profile at logoff. Thus, the obstruction that results from making profile changes when accessing multiple XenApp servers is minimized or eliminated.
Other third-party profile solutions exist but are beyond the scope of this document.
Analyzing Design Requirements
Now that the available profile types have been defined, it must be determined which one is right for use in a particular XenApp environment. To make the determination of the appropriate profile type, the requirements of a particular environment need to be carefully analyzed. Following are questions that need to be answered to define these requirements:Do users need to save their settings?
Do applications store settings in the registry?
How will printers be made available, and how will printer settings be handled?
What is the farm design? Are applications streamed or segregated into application silos?
- Do users need to save their settings?
User requirements and expectations play a large part in which user profile type to use. An administrator must first determine which settings need to be saved and where those settings are stored. If users need to save settings that can be stored in redirected folders, such as Documents, AppData, or other folders, then folder redirection should be considered. Folder redirection can be used with all profile types discussed in this document, and are generally recommended.
- Do applications store settings in the registry?
If the application being deployed does not reference the HKEY_CURRENT_USER (HKCU) hive in the registry, then a mandatory profile solution can be considered. However, many applications do access this hive, so testing is required.
- How will printers be made available, and how will printer settings be handled?
The printing requirements have an impact on the user profile design. Printers are typically enabled through logon scripts or XenApp policies; here we will only discuss the latter.
In order to enable printing, it cannot otherwise be disabled in another Terminal Services or XenApp policy. If printing will be enabled through XenApp policies, administrators can choose where to save client-side settings. Where printer properties (File > Print > Preferences > Local Settings) can be retained has a direct bearing on the type of user profile that has been configured.
In the XenApp Advanced Configuration Console (formerly Presentation Server Console), the Citrix policy named Printer properties retention should be set accordingly. Following are available options:
Held in profile only if not saved on client (default)
Saved on the client device only
Retained in user profile only
- How is the XenApp farm designed? Are applications in silos?
In farms based on multiple application silos, having roaming profiles increase the likelihood of profile setting loss due to “last write wins” issues. For example, users simultaneously accessing SAP and a custom application hosted on different servers will overwrite roaming profile settings made in the custom application session if the user logs off from the custom application session before the SAP session. This effect can therefore be termed the “last write wins” condition. Citrix User Profile Management must be considered as an alternative to roaming profiles if users experience this issue.
Design Practices
When designing your XenApp environment, once the analysis of requirements has been performed, the appropriate profile type(s) needs to be selected.
Comparing Profile Options
The following table is useful for comparing the relative benefits of each profile type when analyzing the design requirements:
Profile Type | Benefits | Disadvantages |
Local Profile |
|
|
Roaming Profile |
|
|
Mandatory Profile |
| |
Multiple Profiles |
|
|
Citrix User Profile Management |
|
|
Using Active Directory Group Policies
Active Directory includes a number of group policies--including a subset of Terminal Services policies--that can be applied to a XenApp environment to optimize performance and stability. Terminal Services profiles are commonly configured within these Group Policy Object (GPO) options. Active Directory based on Windows Server 2003 SP2 and higher, as well as Windows Server 2008, allows Terminal Services mandatory profiles to be configured as a GPO.
Folder Redirection policies can be used with mandatory or roaming profiles to maintain a centralized location for specific folders and is generally recommended to exclude that data from the user profile. The folders that can be redirected are dependent upon the version of Active Directory in use. Where folder redirection is used, the AppData and Documents folders are redirected at minimum.
Without folder redirection, user data is stored within the profile. When folder redirection is enabled, user files stored in the selected folders are segregated from the user profile. As a result, user logins proceed as quickly as possible, and the impact on the profile is minimized.
For profile folders, such as Documents and Desktop, it is generally best to redirect them to the user’s home directory location, under subdirectories with the same profile folder names (such as: Desktop). Folder redirection paths can be in a UNC format (such as: servernameshare%username%Desktop) or using a drive letter (such as: H:Desktop). Use of a drive letter provides flexibility if home directories are stored across multiple file servers.
Depending on the profile solution selected, policies exist to exclude data from the user profile:
Roaming Profile: Exclude directories in roaming profile
Citrix User Profile Management: Registry exclusion list and File system exclusion list
In addition, deleting locally cached profiles on logoff can be configured for Microsoft profiles, as well as Citrix User Profile Management. By configuring appropriately, profiles are not cached on each XenApp server at logoff. In addition, a consistent user experience is assured and disk space is used efficiently.
Specifying Multiple Profiles
As discussed previously, a single user in a XenApp environment may be configured to use different profile types depending on the server being accessed. In a farm employing application silos, this can be useful. However, the administrative effort to configure and maintain multiple profiles needs to be weighed against the expected benefit. For example, a farm may have three different application silos and use different profile types within each silo.
The benefit of this approach is reduction in logon time and profile corruption, while maintaining the administrative benefits of application silos. Multiple profiles can be configured for users in one of several ways. The options are:
Environment variables
Only allow local user profile
Terminal Services profile per application silo
These three methods are described below.
The environment variables method involves setting the users’ profile paths to a value with an environment variable, for example: %profilepath%%username%. On each server, the %profilepath% environment variable will be created. For a farm with two application silos running Microsoft Office and Lotus Notes, the variables could be specified using the SETX utility as follows:
Microsoft Office servers: %profilepath% = fileserveroffice-profiles
Lotus Notes: %profilepath% = fileserverlotus-profiles
When users log on to the Microsoft Office servers, profiles are loaded from fileserveroffice-profiles%username% as denoted by the user profile path and the value of the environment variable on those servers. This method also allows a user to have multiple mandatory profiles, or a blend of roaming and mandatory profiles by copying a mandatory profile (NTUSER.man file) into each specified profile path for every user.
Note: When implementing persistent environment variables using the SETX utility, a reboot might be required.
The Only allow local user profiles policy prevents a user’s roaming profile from downloading, and instead creates a local profile for the user. This option is useful in situations where a multiple application silo approach is used, such as, when published applications are run within published desktops. For example, if an application silo hosting a published desktop requires a roaming profile and a secondary application silo is accessed via a pass-thru ICA connection, it may be necessary to configure this setting. The Only allow local user profile policy therefore allows a blend of roaming and local profiles to be used. In Windows Server 2003 and Windows Server 2008, this policy is available in Active Directory (under the Computer Configuration > Administrative Templates > System > User Profiles settings).
Alternatively, within Citrix User Profile Management, distinct profiles can be designated based on the Organizational Unit (OU) structure.
Finally, where application silos are designated based on computer-based OU, the Terminal Services profile per application silo can be configured accordingly. Using this technique, users can have different roaming profiles depending on the GPOs that are applied to specific servers.
The policy Set Path for TS Roaming User Profile (available under Computer Configuration > Administrative Templates > Windows Components > Terminal Services) can be specified.
An easier means of configuring multiple profiles is by means of Citrix User Profile Management. Because the profile configuration is based on Active Directory OUs, a distinct profile can be designated per application silo so long as each silo is in its own child OU.
Additional Resources
CTX119036 - User Profile Manager Deployment Best Practices
Knowledge Center Highlights: App Virtualization & VDI (July Edition)
So in conjunction with enabling Windows Media Redirection (XenApp 6.5) or HDX MediaStream Multimeda Acceleration
Optimizing User Sessions For Xenapp 6all About Citrix Using
(XenApp 6.0) Citrix Policies.You want to enable Audio on the Citrix receiver :
To enable this directly on the clients machines that have Citrix Receiver installed you import the icaclient.amd template and then enable Citrix GPO from that template.
The icaclient.adm template is installed as part of the Citrix Receiver and located under:
C:Program Files (x86)CitrixICA ClientConfiguration
Launch the Local Group Policy Editor on the clients machine. This can be done by typing the command GPEDIT.MSC
Once that is open under Computer Configuration right click on Administrative Templates and select Add/Remove Templates.
Click the Add button and then browse to the icaclient.adm template and add it.
Once added close and reopen the Local Group Policy Editor and you should now see a new policy section under Classic Administrative Templates (ADM) titled Citrix Components.
To get to the Audio policies section of the Citrix receiver expand the Computer Configuration node to the following location:
Computer Configuration > Administrative Templates > Classic Administrative Templates (ADM) > Citrix Components > Citrix receiver > User Experience > Client Audio settings (Set to ENABLED with the sound quality of your choice Low, Medium , or High)
You also want to make sure that the Audio features are enabled for User sessions through a Citrix User Policy.
ICA > Audio > Client audio redirection > (Set to Allowed)
ICA > Audio > Audio Plug N Play > (Set to Allowed)
NOTE: You can import the
Optimizing User Sessions For Xenapp 6all About Citrix Download
icaclient.adm template in Windows Active Directory and push out the setting to clients in your domain that way also if it is easier for your implementation. The above settings need to be followed whether connecting through Web Interface, Citrix Storefront, or directly from Citrix receiver.Other requirements for using Windows Media Redirection (XenApp 6.5) or HDX MediaStream Multimedia Acceleration (XenApp 6.0) are:
- Users must be running Citrix Receiver.
- The user device must have the same memory and processing speed as is needed for playing multimedia locally.
- The correct codec to decompress the media file type used (MPEG for example) must reside on the user device. Windows devices have the most common codecs already installed. If you need additional codecs, you can download them from the Web sites of the manufacturers of media players.
Citrix Documentation - Enhancing the User Experience With HDX
Citrix Documentation - Multimedia policy settings
Citrix Documentation - Optimizing Audio and Video Playback