# New-RASTunnelingPolicy

## NAME

New-RASTunnelingPolicy

## SYNOPSIS

Creates a tunneling policy.

## SYNTAX

**New-RASTunnelingPolicy** -[IP](#ip-string)\*\*_(string)_ \[-[PublishType](#PublishType)\
{AllRDSessionHostsInSite | RDSessionHostPool | RDSessionHosts |\
None}] \[-[RDSHostIds](#RDSHostIds)_(uint\[])_]\
\[-[RDSHostPoolIds](#RDSHostPoolIds)_(uint\[])_] \[[SiteId](#siteid-string)_(uint)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

Creates a tunneling policy.

## PARAMETERS

## SiteId (uint)

Site ID of the new tunneling policy.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IP (string)

The gateway IP of the tunneling policy.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PublishType

([RDSessionHostsType](../types/rdsessionhoststype))\
The setting that determines which hosts are affected by the tunneling\
policy. Default: AllRDSessionHostsInSite.

Possible values: AllRDSessionHostsInSite, RDSessionHostPool,\
RDSessionHosts, None

```
        Required?                    false

        Position?                    named

        Default value                AllRDSessionHostsInSite

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RDSHostPoolIds (uint\[])

The IDs of the selected RD session host pools.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RDSHostIds (uint\[])

The IDs of the selected individual RD session hosts.

```
        Required?                    false

        Position?                    named

        Default value                

        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

-none-

## OUTPUTS

-none-

## EXAMPLES

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

New-RASTunnelingPolicy -IP 1.2.3.4 -PublishType None

Creates a tunneling policy.

## RELATED LINKS

* [Get-RASTunnelingPolicy](get-rastunnelingpolicy)
* [Set-RASTunnelingPolicy](set-rastunnelingpolicy)
* [Remove-RASTunnelingPolicy](remove-rastunnelingpolicy)
