How to Configure "TreatAsApp" in XenDesktop 7.8 and 7.15

How to Configure "TreatAsApp" in XenDesktop 7.8 and 7.15

book

Article ID: CTX223817

calendar_today

Updated On:

Description

How to configure "TreatAsApp" in XenDesktop 7.8 and 7.15


Instructions

Because of the change in architecture, in Xendesktop delivery groups we have to make changes in the Desktop tab and in 7.6 we need to make changes in User Settings.

If Keywords:TreatAsApp is not used:

Then also we can achieve same thing using command line
=================================================
use commandline on the StoreFront ​
1. asnp Citrix*
2. & "C:\Program Files\Citrix\Receiver StoreFront\Scripts\ImportModules.ps1"
3. $storeService = Get-STFStoreService
4.
Set-STFStoreEnumerationOptions $storeService -EnhancedEnumeration $true
5. Set-EnhancedEnumerationOptions -siteId 1 -storeVirtualPath /Citrix/Store   -treatDesktopsAsApps $true  

Explanation

1. Creation of Delivery Group:

 
created a delivery group here:


User-added image
 

Edited Desktop:



User-added image

User-added image

Browsed Site:


User-added image
If we set “TreatAsApp” in keyword, it will get our desktop in Apps tab. However to removed “Desktop” field we need to make changes in storefront:
 
Now, to set from Storefront 3.5

User-added image

User-added image

User-added image

In StoreFront 3.5 this is added in GUI, however earlier we used to do same by editing the config file:
 
This is configurable via web.config under the Receiver for Web site, normallyC:\inetpub\wwwroot\Citrix\StoreWeb. Open this file in your favorite text editor and locate the following segment:
    <uiViews showDesktopsView="true" showAppsView="true"
             defaultView="desktops" />
Change the value of defaultView to be apps:
    <uiViews showDesktopsView="true" showAppsView="true"
             defaultView="apps" />


Difference between XD 7.8 and XD 7.6:
 
XenDesktop 7.8:
User-added image
User Settings: is only for Administrator:

User-added image

XenDesktop 7.6:
 
In Server OS delivery Group:

User-added image
In Desktop OS delivery group:

User-added image

So because of this change in architecture, in XenDesktop delivery groups we have to make changes in the Desktop tab in 7.8 and in 7.6 we need to make changes in User Settings.


If Keyword:TreatAsApp is not used: Then also we can achieve same thing
==========================================================
use commandline on the storefront

1. asnp Citrix* 
2. & "C:\Program Files\Citrix\Receiver StoreFront\Scripts\ImportModules.ps1" 
3. Set-EnhancedEnumerationOptions -siteId 1 -storeVirtualPath /Citrix/Store  
-treatDesktopsAsApps $true

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.