# Remove-RASWinDeviceGroupInboundPort

## NAME

Remove-RASWinDeviceGroupInboundPort

## SYNOPSIS

Removes the Windows device group Inbound ports.

## SYNTAX

**Remove-RASWinDeviceGroupInboundPort** \[-[Id](#Id)] _\<uint>_ -[Port](#Port) _\<uint>_ -[Profile](#Profile) {Domain | Private | Public | All} -[Protocol](#Protocol) {TCP | UDP} \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASWinDeviceGroupInboundPort** \[\[-[InputObject](#InputObject)] _<_[_WinDeviceGroup_](../classes-and-enumerations/windevicegroup)_>_] -[Port](#Port) _\<uint>_ -[Profile](#Profile) {Domain | Private | Public | All} -[Protocol](#Protocol) {TCP | UDP} \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASWinDeviceGroupInboundPort** \[-[Name](#Name)] _\<string>_ -[Port](#Port) _\<uint>_ -[Profile](#Profile) {Domain | Private | Public | All} -[Protocol](#Protocol) {TCP | UDP} \[-[SiteId](#SiteId) _\<uint>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Removes the Windows device group Inbound ports.

## PARAMETERS

-**Port \<uint>**\
The Port of the Windows Device Group to remove.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Protocol <**[**Protocol**](../classes-and-enumerations/protocol)**>**\
The Protocol of the Windows Device Group to remove.

Possible values: TCP, UDP

```
        Required?                    true

        Position?                    named

        Default value                TCP

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Profile <**[**Profile**](../classes-and-enumerations/profile)**>**\
The Profile of the Windows Device Group to remove.

Possible values: Domain, Private, Public, All

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Name \<string>**\
The name of the windows device group from which to add the Inbound Port.

This must be the actual windows device group name used in the RAS farm.

```
        Required?                    true

        Position?                    1

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SiteId \<uint>**\
The ID of the Site from which from which to add the Inbound Port.

If the parameter is omitted, the Licensing Server Site ID will be used.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<uint>**\
The ID of a windows device group from which to add the Inbound Port.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InputObject <**[**WinDeviceGroup**](../classes-and-enumerations/windevicegroup)**>**\
The Windows Device Group to modify.

```
        Required?                    false

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        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

[WinDeviceGroup](../classes-and-enumerations/windevicegroup)

## OUTPUTS

-none-

## EXAMPLES

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

Remove-RASWinDeviceGroupInboundPort -Name "WinDeviceGroup" -Port 50005 -Protocol TCP -Profile All

Removes an Inbound port from the list of Inbound ports of the Windows device group with name WinDeviceGroup.\
&#xNAN;**---------- EXAMPLE 2 ----------**

Remove-RASWinDeviceGroupInboundPort -Id 1 -Port 50005 -Protocol TCP -Profile All

Removes an Inbound port from the list of Inbound ports of the Windows device group with Id 1.

## RELATED LINKS

* [New-RASWinDeviceGroup](new-raswindevicegroup)
* [Get-RASWinDeviceGroup](get-raswindevicegroup)
* [Set-RASWinDeviceGroup](set-raswindevicegroup)
* [Remove-RASWinDeviceGroup](remove-raswindevicegroup)
* [Add-RASWinDeviceGroupInboundPort](add-raswindevicegroupinboundport)
* [Get-RASWinDeviceGroupInboundPort](get-raswindevicegroupinboundport)
