XenDesktop 7.x App-V Policy Reference

View Citrix App-V policies

ASNP Citrix*

Get-BrokerMachineConfiguration


View App-V policy configuration

$config = Get-BrokerMachineConfiguration -Name AppV\1

Get-CtxAppVServer -ByteArray $config[0].Policy


View App-V policy Publishing Server configuration

Get-CtxAppvServerSetting –AppVPublishingServer http://appv.chawn.local:54321

The displayed policy will synchronise user assigned App-V packages only at logon.


Create a new Citrix App-V policy

$Policy = New-CtxAppVServer -ManagementServer http://2012r2-appv02.chawn.local:12345 -PublishingServer http://appv2.chawn.local:54321

New-BrokerMachineConfiguration -ConfigurationSlotUid 3 -LeafName 2 -Policy $Policy


View the new App-V policy and its configuration

Get-BrokerMachineConfiguration –Name AppV\2

$config = Get-BrokerMachineConfiguration -Name AppV\2

Get-CtxAppVServer -ByteArray $config[0].Policy


Configure the new App-V policy Publishing Server settings

Set-CtxAppvServerSetting –AppVPublishingServer http://appv2.chawn.local:54321 -UserRefreshOnLogon 1 -UserRefreshEnabled 1 -GlobalRefreshOnLogon 0 -GlobalRefreshEnabled 0


View which Desktop Groups are assigned to App-V policies

Get-BrokerMachineConfiguration –Name AppV\*

Desktop Group 1 is assigned to the AppV\1 policy. No Desktops groups are assigned to the AppV\2 Policy. (DesktopGroupUids)


Assign a Desktop Group to an App-V policy

Get the Desktop Group UID

Get-BrokerDesktopGroup -name 2012R2-D2 -Property uid

Assign the Policy

Add-BrokerMachineConfiguration –Name AppV\2 –DesktopGroup 3

Validate the assignment - Check the DesktopGroupUids

Get-BrokerMachineConfiguration –Name AppV\2


Remove a Desktop Group from an App-V policy

Get the Desktop Group UID

Get-BrokerDesktopGroup -name 2012R2-D2 -Property uid

Remove the policy assignment

Remove-BrokerMachineConfiguration –Name AppV\2 –DesktopGroup 3

Validate the removal

Get-BrokerMachineConfiguration –Name AppV\2


Delete an App-V policy

Remove-BrokerMachineConfiguration –Name AppV\2

Validate that the policy is no longer present

Get-BrokerMachineConfiguration –Name AppV\*