Condividi tramite


Remove-DhcpServerv4MulticastExclusionRange

Remove-DhcpServerv4MulticastExclusionRange

Removes a range of addresses previously excluded from a multicast scope.

Sintassi

Parameter Set: Remove2
Remove-DhcpServerv4MulticastExclusionRange [-Name] <String> [[-StartRange] <IPAddress> ] [[-EndRange] <IPAddress> ] [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descrizione dettagliata

The Remove-DhcpServerv4MulticastExclusionRange cmdlet removes a range of addresses previously excluded from a multicast scope. The addresses are available immediately after the cmdlet runs. An exclusion prevents the Dynamic Host Configuration Protocol (DHCP) Server service from offering these addresses for DHCP assignment.

Parametri

-AsJob

Alias

nessuno

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-CimSession<CimSession[]>

Esegue il cmdlet in una sessione remota o in un computer remoto. Immettere un nome di computer o un oggetto di sessione, ad esempio l'output del cmdlet New-CimSession o Get-CimSession. Il valore predefinito è la sessione corrente nel computer locale.

Alias

Session

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-ComputerName<String>

Specifies the Domain Name System (DNS) name or IP address of the target computer that runs the DHCP Server service.

Alias

Cn

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-EndRange<IPAddress>

Specifies the high end of the range of IP addresses previously excluded from the scope. Use the StartRange parameter to specify the low end of the range of IP addresses to remove from the exclusion range. If you do not specify the low end of the range by using the StartRange parameter, the cmdlet removes the exclusion range that ends with this parameter. If the DHCP Server service is not excluding addresses ending at the specified value, the cmdlet returns an error and exits.

If you do not specify either the low end or the high end of the exclusion range, the cmdlet removes all exclusion ranges for the specified scope.

Alias

nessuno

Obbligatorio?

false

Posizione?

4

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-Name<String>

Specifies the name of the multicast scope from which to remove the IP address exclusion range.

Alias

nessuno

Obbligatorio?

true

Posizione?

2

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-PassThru

Restituisce un oggetto che rappresenta l'elemento in uso. Per impostazione predefinita, il cmdlet non genera alcun output. If this parameter is specified, the cmdlet return the PowerShell objects which are deleted.

Alias

nessuno

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-StartRange<IPAddress>

Specifies the low end of the range of IP addresses that were previously excluded from the scope. Use the EndRange parameter to specify the high end of the range of IP addresses to remove from the exclusion range. If you do not specify the high end of the range by using the EndRange parameter, the cmdlet removes the exclusion range that begins with this parameter. If the DHCP Server service is not excluding addresses beginning at the specified value, the cmdlet returns an error and exits.

If you do not specify either the low end or the high end of the exclusion range, the cmdlet removes all exclusion ranges for the specified scope.

Alias

nessuno

Obbligatorio?

false

Posizione?

3

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-ThrottleLimit<Int32>

Specifica il numero massimo di operazioni simultanee che è possibile stabilire per eseguire il cmdlet. Se il parametro viene omesso o si specifica il valore 0, Windows PowerShell® calcola un valore limite ottimale per il cmdlet basato sul numero di cmdlet CIM in esecuzione nel computer. Questo valore limite si applica solo al cmdlet corrente, non alla sessione o al computer.

Alias

nessuno

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-Confirm

Richiede conferma prima di eseguire il cmdlet.

Obbligatorio?

false

Posizione?

named

Valore predefinito

False

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-WhatIf

Mostra gli effetti dell'esecuzione del cmdlet. Il cmdlet non viene eseguito.

Obbligatorio?

false

Posizione?

named

Valore predefinito

False

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

Esempi

Example 1: Remove an excluded address range by scope name

This command removes all excluded multicast IP address ranges from the multicast scope named Multicast_VideoConference from the DHCP Server service running on the computer named DhcpServer01.Contoso.com.

PS C:\> Remove-DhcpServerv4MulticastExclusionRange -Name "Multicast_VideoConference" -ComputerName "DhcpServer01.Contoso.com"

Example 2: Remove an excluded address range by IP address

This command removes the excluded multicast IP address range 224.0.0.21 through 224.0.0.25 from the multicast scope named Multicast_VideoConference.

PS C:\> Remove-DhcpServerv4MulticastExclusionRange -Name "Multicast_VideoConference" -StartRange 224.0.0.21 -EndRange 224.0.0.25 -ComputerName "DhcpServer01.Contoso.com"

Example 3: Remove an excluded address range by start range

This command removes the excluded multicast IP address range beginning with address 224.0.0.21. The command specifies the multicast scope named Multicast_VideoConference for the DHCP Server service running on the computer named DhcpServer01.Contoso.com.

PS C:\> Remove-DhcpServerv4MulticastExclusionRange -Name "Multicast_VideoConference" -StartRange 224.0.0.21 -ComputerName "DhcpServer01.Contoso.com"

Argomenti correlati

Add-DhcpServerv4MulticastExclusionRange

Get-DhcpServerv4MulticastExclusionRange