Hiding Citrix XenDesktop 7.x applications from PNAgent published Apps and Desktops

Problem


You’ve successfully configured a zero client to connect to your XenDesktop
7.x infrastructure via the URL:



https://yourStoreFrontFQDN.com/Citrix/StoreName/PNAgent/config.xml


… but would like to hide all of the published applications because the zero
client will only be used for desktop access.

















Solution


One of the ways to hide Applications or Desktops is to use the PowerShell
cmdlet Set-DSResourceFilterType on the StoreFront server.



Begin by setting the execution policy to remote signed then importing the
necessary Citrix PowerShell modules with the following cmdlets:



Set-ExecutionPolicy RemoteSigned

$dsInstallProp = Get-ItemProperty -Path
HKLM:SOFTWARECitrixDeliveryServicesManagement -Name InstallDir


$dsInstallDir = $dsInstallProp.InstallDir

& $dsInstallDir..ScriptsImportModules.ps1




















Next, determine the Site ID of the IIS site
hosting the StoreFront website:































With the Site ID determined, execute the following cmdlet to
list what is being displayed for the store:



Get-DSResourceFilterType -SiteId 1 -VirtualPath “/Citrix/


For example:


Get-DSResourceFilterType -SiteId 1 -VirtualPath “/Citrix/Desktop









Notice the output above shows that Applications,
Desktops and Documents are displayed meaning
nothing is filtered out.



Next, execute the following cmdlet to filter out
Applications and Documents thereby leaving
only Desktops displayed:



Set-DSResourceFilterType -SiteId 1 -VirtualPath “/Citrix/Desktop”
-IncludeTypes @(“Desktops”)










Executing the:


Get-DSResourceFilterType -SiteId 1 -VirtualPath “/Citrix/Desktop



… will now show that only Desktops are included.



Logging into the zero client will now hide the applications that were
displayed in the earlier screenshot:




2 Responses

  1. Hi,

    doesn't it mean that users will not see the applications on receievr anymore ?
    or doesn't only hide applications for people who connect on the wyse ?

    thanks