Get-DhcpServerv6OptionValue

Get-DhcpServerv6OptionValue

Returns the IPv6 option values for one or more IPv6 options either for a specific reserved IP, scope or, server level.

Sintaxis

Parameter Set: Get0
Get-DhcpServerv6OptionValue [[-OptionId] <UInt32[]> ] [[-Prefix] <IPAddress> ] [-All] [-AsJob] [-Brief] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ReservedIP <IPAddress> ] [-ThrottleLimit <Int32> ] [-UserClass <String> ] [-VendorClass <String> ] [ <CommonParameters>]

Descripción detallada

The Get-DhcpServerv6OptionValue cmdlet returns the IPv6 option values for one or more IPv6 options either for a specific reserved IP, scope, or server level. The option identifier (ID) can be a standard option or for a specified vendor class. If the OptionId parameter is not specified, then all option values at the requested level, such as reservation, scope, server, are returned.

If the ReservedIP parameter is specified, then the option values set at the reservation level are returned. If the Prefix parameter is specified, then the option values set at the specified scope level are returned. If neither the Prefix nor the ReservedIP parameter is specified, then the option values set at the server level are returned.

If neither the VendorClass nor the UserClass parameter is specified, then this cmdlet returns the standard option values.

Parámetros

-All

Gets the option values for a scope, server, or reservation. Option values can include vendor class and user class specific.
If only this parameter is specified, then this cmdlet will get all of the option values for the specified scope, reservation, or server.
If the OptionId parameter and this parameter are specified, then option values for the specified option ID for all of the vendor classes and user classes will be returned.
If the VendorClass parameter and this parameter are specified, then all of the option values for the specified vendor class including those for any user class would be returned.
If the UserClass parameter and this parameter are specified, then all of the option values for the specified user class including any vendor specific options would be returned.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Brief

Specifies that the name of the option is not returned in the option value object. This parameter improves the performance of this cmdlet by not requesting the name of the option from the Dynamic Host Configuration Protocol (DHCP) server service. For repeatedly fetching a large number of option values with this cmdlet, use of this parameter is recommended.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ComputerName<String>

Specifies the DNS name, or IPv4 or IPv6 address, of the target computer running the DHCP server service.

Alias

Cn

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-OptionId<UInt32[]>

Specifies the numerical identifier of the options for which one or more values are being requested. If this parameter is not specified, then all option values configured are returned.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Prefix<IPAddress>

Specifies the IPv6 subnet prefix of the scope for which the option values are being requested.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ReservedIP<IPAddress>

Specifies the reserved IPv6 address for which the option values are being requested.

Alias

IPAddress

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-UserClass<String>

Specifies that the option values for the specified user class are returned.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-VendorClass<String>

Specifies that the option values for the specified vendor class are returned.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

EXAMPLE 1

This example gets all of the standard DHCPv6 option values, non-class specific, configured at the server level.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com

EXAMPLE 2

This example gets all of the standard DHCPv6 option values, non-class specific, configured for the specified scope.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -Prefix 2001:4898:7020:1020::

EXAMPLE 3

This example gets all of the standard DHCPv6 option values, non-class specific, configured for the specified reservation.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -ReservedIP 2001:4898:7020:1020::5

EXAMPLE 4

This example gets all of the vendor class specific DHCPv6 option values configured on the specified scope for the specified vendor class.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -Prefix 2001:4898:7020:1020:: -VendorClass MSUCClient

EXAMPLE 5

This example gets the DHCPv6 option value configured on the specified scope for the specified option identifier.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -Prefix 2001:4898:7020:1020:: -OptionId 23

EXAMPLE 6

This example gets all of the DHCPv6 option values configured on the specified scope. The DHCPv6 option values that are returned include the standard as well as vendor class or user class specific options.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -Prefix 2001:4898:7020:1020:: -All

EXAMPLE 7

This example gets all of the standard DHCPv6 option values configured on the specified scope. The object that is returned does not contain the name of the option. The Brief parameter improves the performance of this cmdlet by not requesting the name of the option from the DHCP server service.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -Prefix 2001:4898:7020:1020:: -Brief

EXAMPLE 8

This example gets all of the user class specific DHCPv6 option values configured on the specified scope for the specified user class.

PS C:\> Get-DhcpServerv6OptionValue -ComputerName dhcpserver.contoso.com -Prefix 2001:4898:7020:1020:: -UserClass LabComputer

Temas relacionados

Remove-DhcpServerv6OptionValue

Set-DhcpServerv6OptionValue