Add-RASPubItemPreferredRoute
SYNOPSIS
Adds a preferred route to the specified published resource.
SYNTAX
Add-RASPubItemPreferredRoute [-Id] <uint> -Name <string> -ReferenceId <uint>
-ReferenceType {Gateway | HALB | Custom} [-Description <string>] [-Enabled <bool>] [-SiteId <uint>]
[<CommonParameters>]Add-RASPubItemPreferredRoute [-InputObject] <PubItem> -Name <string> -ReferenceId <uint>
-ReferenceType {Gateway | HALB | Custom} [-Description <string>] [-Enabled <bool>] [-SiteId <uint>]
[<CommonParameters>]DESCRIPTION
This cmdlet allows you to add a preferred route to the specified published resource.
To modify preferred route options, use the Set-RASPubItemPreferredRoute cmdlet.
EXAMPLES
Example 1
Adds a preferred route with Name Route1 that routes connections through the Gateway with ID 1.
The target published resource is specified by ID 12.
Example 2
Adds a preferred route with Name Route2 that routes connections through the HALB with ID 1.
The target published resource is specified by ID 12.
PARAMETERS
-Name
The Name of the Preferred Route
-Description
Description of the Preferred Route
-Enabled
Whether the Preferred Route is enabled or not
-ReferenceType
Reference Type of the Preferred Route
Possible values: Gateway, HALB, Custom
Type reference: RoutingType
-ReferenceId
Reference ID of the Preferred Route
-Id
Published resource ID.
-InputObject
An object specifying the published resource.
To obtain the object, use the Get-PubItem cmdlet.
Type reference: PubItem
-SiteId
Site ID.
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
PubItem
OUTPUTS
None
RELATED LINKS
Last updated