Add-RASPubItemPreferredRoute
Last updated
Last updated
Add-RASPubItemPreferredRoute
Adds a preferred route to the specified published resource.
Add-RASPubItemPreferredRoute [-] <uint> - <string> - <uint> - {Gateway | HALB | Custom} [- <string>] [- <bool>] [- <uint>] [<>] Add-RASPubItemPreferredRoute [-] <> - <string> - <uint> - {Gateway | HALB | Custom} [- <string>] [- <bool>] [- <uint>] [<>]
This cmdlet allows you to add a preferred route to the specified published resource. To modify preferred route options, use the Set-RASPubItemPreferredRoute cmdlet.
-Name <string> The Name of the Preferred Route
-Description <string> Description of the Preferred Route
-Enabled <bool> Whether the Preferred Route is enabled or not
-ReferenceId <uint> Reference ID of the Preferred Route
-Id <uint> Published resource ID.
-SiteId <uint> Site ID.
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- Add-RASPubItemPreferredRoute -Id 12 -Name Route1 -ReferenceType Gateway -ReferenceId 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 ---------- Add-RASPubItemPreferredRoute -Id 12 -Name Route2 -ReferenceType HALB -ReferenceId 1 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.
-ReferenceType <> Reference Type of the Preferred Route Possible values: Gateway, HALB, Custom
-InputObject <> An object specifying the published resource. To obtain the object, use the Get-PubItem cmdlet.