# Get-RASPubItemPreferredRoute

## NAME

Get-RASPubItemPreferredRoute

## SYNOPSIS

Get a list of preferred routes for the specified published resource.

## SYNTAX

**Get-RASPubItemPreferredRoute**\
\[[Id](#id-string)] _(uint)_\
\[[SiteId](#siteid-string) _(uint)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Get-RASPubItemPreferredRoute**\
\[-[InputObject](#inputobject)]_(_[_PubItem_](../types/pubitem)_)_\
\[[SiteId](#siteid-string) _(uint)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

This cmdlet gets a list of preferred routes for the specified published\
resource.

## PARAMETERS

## Id (uint)

Published resource ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([PubItem](../types/pubitem))

An object specifying the published resource.

To obtain the object, use the Get-PubItem cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[PubItem](../types/pubitem)

## OUTPUTS

[PubPreferredRoute](../types/pubpreferredroute)

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Get-RASPubItemPreferredRoute -Id 12

Retrieves a list of preferred routes.

The target published resource is specified by ID 12.

## RELATED LINKS

* [Get-RASPubItem](get-raspubitem)
* [Add-RASPubItemPreferredRoute](add-raspubitempreferredroute)
* [Set-RASPubItemPreferredRoute](set-raspubitempreferredroute)
* [Remove-RASPubItemPreferredRoute](remove-raspubitempreferredroute)
* [New-RASCustomRoute](new-rascustomroute)
* [Get-RASCustomRoute](get-rascustomroute)
* [Set-RASCustomRoute](set-rascustomroute)
* [Remove-RASCustomRoute](remove-rascustomroute)
* [Get-RASGateway](get-rasgateway)
* [Get-RASHALB](get-rashalb)
