Citrix Virtual Apps and Desktops SDK

New-CtxAppVServer

Creates a new Citrix App-V policy containing the specified App-V Management and Publishing Server URLs.

Syntax

New-CtxAppVServer
   -PublishingServer <String>
   -ManagementServer <String>
   [-UserRefreshEnabled <Boolean>]
   [-UserRefreshOnLogOn <Boolean>]
   [-UserRefreshInterval <Int32>]
   [-UserRefreshIntervalUnit <RefreshInterval>]
   [-GlobalRefreshEnabled <Boolean>]
   [-GlobalRefreshOnLogOn <Boolean>]
   [-GlobalRefreshInterval <Int32>]
   [-GlobalRefreshIntervalUnit <RefreshInterval>]
   [<CommonParameters>]
<!--NeedCopy-->

Description

Creates a new Citrix App-V policy containing the specified App-V Management and Publishing Server URLs. Additionally, accepts Publishing Server settings that control how and when automatic refresh occurs on the VDA.

Examples

EXAMPLE 1

Creates a new Citrix Policy for Management Server appv-mansrv & Publishing Server: appv-pubsrv on port 8082.

Default Publishing Server setting is used for http://appv-pubsrv.mydomain.com:8082

Default values for Publishing Server settings are:

GlobalRefreshEnabled = false

GlobalFreshOnLogon = false

GlobalIntervalRefreshInterval = 0

GlobalRefreshIntervalUnit = Day

UserRefreshEnabled = true

UserRefreshOnLogon = true

UserIntervalRefreshInterval = 0

GlobalRefreshIntervalUnit = Day

New-CtxAppVServer -ManagementServer http://appv-mansrv.mydomain.com -PublishingServer http://appv-pubsrv.mydomain.com:8082
<!--NeedCopy-->

EXAMPLE 2

Creates a new Citrix Policy for Management Server AppV-Mgmt-Server:8080 & Publishing Server: AppV-Mgmt-Server:8082. User specified Publishing Server settings are used for AppV-Mgmt-Server:8082

Following values are used to configure Publishing Server appv-pubsrv

GlobalRefreshEnabled = True

GlobalRefreshOnLogon = True

GlobalIntervalRefreshInterval = 2

GlobalRefreshIntervalUnit = Hour

UserRefreshEnabled = true

UserRefreshOnLogon = true

UserIntervalRefreshInterval = 3

GlobalRefreshIntervalUnit = Hour

New-CtxAppVServer -ManagementServer http://appv-mansrv.mydomain.com -PublishingServer http://appv-pubsrv.mydomaain.com:8082 -GlobalRefreshEnabled $true -GlobalRefreshOnLogon $true -GlobalRefreshInterval 2 -GlobalRefreshIntervalUnit Hour -UserRefreshEnabled $true -UserRefreshOnLogon $true -UserRefreshInterval 3 -UserRefreshIntervalUnit Hour
<!--NeedCopy-->

Parameters

-ManagementServer

The URL of the Management Server to add to the Citrix policy.

Type: String
Position: Named
Default value: None
Required: True
Accept pipeline input: False
Accept wildcard characters: True

-PublishingServer

The URL (including the port number) of the Publishing Server to add to the Citrix policy.

Type: String
Position: Named
Default value: None
Required: True
Accept pipeline input: False
Accept wildcard characters: False

-UserRefreshEnabled

Enables a refresh of packages published to user groups either at user logon or at a specified interval. For more information, see the App-V 5.0 documentation at http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: Boolean
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-UserRefreshInterval

Specifies the frequency at which to initiate a refresh of packages published to user groups. This can be either days or hours, as specified by the UserRefreshIntervalUnit setting. For more information, see the App-V 5.0 documentation at http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: Int32
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-UserRefreshInterval

Specifies the frequency at which to initiate a refresh of packages published to user groups. This can be either days or hours, as specified by the UserRefreshIntervalUnit setting. For more information, see the App-V 5.0 documentation at http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: Int32
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-UserRefreshIntervalUnit

Specifies the unit for the UserRefreshInterval setting. This can be set to either Hours (0) or Days (1). For more information, see the App-V 5.0 documentation at http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: RefreshInterval
Accepted values: Hour, Day
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-GlobalRefreshEnabled

Enables a refresh of packages published to machine groups either at user logon or at a specified interval. For more information, see the App-V 5.0 documentation at http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: Boolean
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-GlobalRefreshInterval

Specifies the frequency at which to initiate a refresh of packages published to machine groups. This can be either days or hours, as specified by the GlobalRefreshIntervalUnit setting. Please refer to App-V 5.0 documentation for details. http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: Int32
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-GlobalRefreshIntervalUnit

Specifies the unit for the GlobalRefreshInterval setting. This can be set to either Hours (0) or Days (1). Please refer to App-V 5.0 documentation for details. http://technet.microsoft.com/en-us/library/jj687745.aspx

Type: RefreshInterval
Accepted values: Hour, Day
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-GlobalRefreshOnLogOn

Type: Boolean
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-UserRefreshOnLogOn

Type: Boolean
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

You can’t pipe objects to this cmdlet.

Outputs

None

By default, this cmdlet returns no output.

New-CtxAppVServer