Get-DhcpServerv4Reservation

Get-DhcpServerv4Reservation

Gets one or more IPv4 reservations for the specified IP addresses or client identifiers (IDs).

Sintaxe

Parameter Set: ScopeId
Get-DhcpServerv4Reservation [-ScopeId] <IPAddress> [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ClientId
Get-DhcpServerv4Reservation [-ScopeId] <IPAddress> [-ClientId] <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: IPAddress
Get-DhcpServerv4Reservation -IPAddress <IPAddress[]> [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Descrição detalhada

The Get-DhcpServerv4Reservation cmdlet gets one or more IPv4 reservations for the specified IP addresses or client identifiers (IDs). If only the ScopeId parameter is specified, then all of the IPv4 reservations from the specified scope are returned.

Parâmetros

-AsJob

Aliases

nenhuma

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-CimSession<CimSession[]>

Executa o cmdlet em uma sessão remota ou em um computador remoto. Insira um nome do computador ou um objeto de sessão, como a saída de um cmdlet New-CimSession ou Get-CimSession. O padrão é a sessão atual do computador local.

Aliases

Session

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-ClientId<String[]>

Specifies one or more client IDs of the reservations which need to be retrieved. For Windows clients, the MAC address is the client ID.

Aliases

nenhuma

Necessário?

true

Posição?

3

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-ComputerName<String>

Specifies the DNS name, or IPv4 or IPv6 address, of the target computer running the Dynamic Host Configuration Protocol (DHCP) server service.

Aliases

Cn,ReservationServer

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-IPAddress<IPAddress[]>

Specifies one or more IPv4 addresses of the reservations which are to be retrieved.

Aliases

ReservedIP

Necessário?

true

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-ScopeId<IPAddress>

Specifies the scope ID, in IPv4 address format, from which the reservations are to be retrieved.

Aliases

ReservationScopeID

Necessário?

true

Posição?

2

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-ThrottleLimit<Int32>

Especifica o número máximo de operações simultâneas que podem ser estabelecidas para executar o cmdlet. Se esse parâmetro for omitido ou um valor de 0 for inserido, o Windows PowerShell® calculará o limite ideal de restrição para o cmdlet com base no número de cmdlets do CIM que estão em execução no computador. O limite de restrição se aplica somente ao cmdlet atual, e não à sessão ou ao computador.

Aliases

nenhuma

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

<CommonParameters>

Esse cmdlet dá suporte a parâmetros comuns: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Para obter mais informações, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

O tipo de entrada é o tipo dos objetos que você pode canalizar para o cmdlet.

Saídas

O tipo de saída é o tipo de objeto emitido pelo cmdlet.

Exemplos

EXAMPLE 1

This cmdlet gets all of the reservations present in the specified scope on the specified DHCP server service running on the computer named dhcpserver.contoso.com.

PS C:\> Get-DhcpServerv4Reservation -ComputerName dhcpserver.contoso.com -ScopeId 10.10.10.0.

EXAMPLE 2

This cmdlet gets the reservation present in the specified scope for specified client ID.

PS C:\> Get-DhcpServerv4Reservation -ComputerName dhcpserver.contoso.com -ScopeId 10.10.10.0 -ClientId F0-DE-F1-7A-00-5E

EXAMPLE 3

This cmdlet gets the reservation information for specified IP address.

PS C:\> Get-DhcpServerv4Reservation -ComputerName dhcpserver.contoso.com -IPAddress 10.10.10.5

EXAMPLE 4

This cmdlet gets all the reserved IP addresses from all of the scopes on the server dhcpserver.contoso.com. The Get-DhcpServerv4Scope cmdlet returns all of the scope objects and pipes the objects into this cmdlet, which returns the reservations from all the scopes.

PS C:\> Get-DhcpServerv4Scope -ComputerName dhcpserver.contoso.com | Get-DhcpServerv4Reservation -ComputerName dhcpserver.contoso.com

Tópicos relacionados

Add-DhcpServerv4Reservation

Get-DhcpServerv4Scope

Remove-DhcpServerv4Reservation

Set-DhcpServerv4Reservation