Get-DhcpServerv6OptionValue is accessible with the help of DHCPServer module. To configure DHCPServer, go through this link.
Synopsis
Returns the IPv6 option values for one or more IPv6 options either for a specific reserved IP, scope or, server level.
Description
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.
Parameters
-All
Indicates that this cmdlet 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, this cmdlet gets all of the option values for the specified scope, reservation, or server.
If you specify the OptionId parameter and this parameter, option values for the specified option ID for all of the vendor classes and user classes are returned.
If you specify the VendorClass parameter and this parameter, all of the option values for the specified vendor class including those for any user class would be returned.
If you specify the UserClass parameter and this parameter, all of the option values for the specified user class including any vendor specific options would be returned.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job
cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell background jobs, see about_Jobs.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | 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 by using this cmdlet, we recommend use of the Brief parameter.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Type: | CimSession[] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerName
Specifies the DNS name, or IPv4 or IPv6 address, of the target computer that runs the DHCP server service.
Type: | String |
Aliases: | Cn |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OptionId
Specifies the numeric identifier of the options for which one or more values are being requested. If you do not specify this parameter, all option values configured are returned.
Type: | UInt32[] |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
-Prefix
Specifies the IPv6 subnet prefix of the scope for which the option values are requested.
Type: | IPAddress |
Position: | 2 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
-ReservedIP
Specifies the reserved IPv6 address for which the option values are requested.
Type: | IPAddress |
Aliases: | IPAddress |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0
is entered, then Windows PowerShell calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserClass
Specifies that the option values for the specified user class are returned.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
-VendorClass
Specifies that the option values for the specified vendor class are returned.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Syntax
Get-DhcpServerv6OptionValue [-ComputerName <String>] [-VendorClass <String>] [[-Prefix] <IPAddress>] [-ReservedIP <IPAddress>] [-UserClass <String>] [[-OptionId] <UInt32[]>] [-All] [-Brief] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
—————-EXAMPLE 1—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com
This example gets all of the standard DHCPv6 option values, non-class specific, configured at the server level.
—————-EXAMPLE 2—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -Prefix fe80::d9b9:a75a::
This example gets all of the standard DHCPv6 option values, non-class specific, configured for the specified scope.
—————-EXAMPLE 3—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -ReservedIP fe80::d9b9:a75a::7
This example gets all of the standard DHCPv6 option values, non-class specific, configured for the specified reservation.
—————-EXAMPLE 4—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -Prefix fe80::d9b9:a75a:: -VendorClass HPPrinter
This example gets all of the vendor class specific DHCPv6 option values configured on the specified scope for the specified vendor class.
—————-EXAMPLE 5—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -Prefix fe80::d9b9:a75a:: -OptionId 22
This example gets the DHCPv6 option value configured on the specified scope for the specified option identifier.
—————-EXAMPLE 6—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -Prefix fe80::d9b9:a75a:: -All
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.
—————-EXAMPLE 7—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -Prefix fe80::d9b9:a75a:: -Brief
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.
—————-EXAMPLE 8—————-
PS C:> Get-DhcpServerv6OptionValue -ComputerName dhcpsrv.TOSSolution.com -Prefix fe80::d9b9:a75a:: -UserClass FirstfloorComputer
This example gets all of the user class specific DHCPv6 option values configured on the specified scope for the specified user class.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Get-DhcpServerv6OptionValue
You can also read about
- Remove-DhcpServerv6OptionValue
- Set-DhcpServerv6OptionValue
To know more PowerShell cmdlets(Commands) on DHCPServer click here