SetByOptionId method of the PS_DhcpServerv6OptionValue class
Sets an IPv6 option value at the Server, Scope or Reservation Level. Any previously set option value(s) for the specified option id are discarded.
Syntax
uint32 SetByOptionId(
[in] boolean PassThru,
[in] boolean Force,
[in] string Value[],
[in] uint32 OptionId,
[in] string Prefix,
[in] string UserClass,
[in] string VendorClass,
[in] string ComputerName,
[in] string ReservedIP,
[out] DhcpServerv6OptionValue cmdletOutput
);
Parameters
-
PassThru [in]
-
If this parameter is specified, the cmdlet return the PowerShell objects which are deleted.
-
Force [in]
-
If specified the DNS server validation will be skipped. This is applicable only if the DNS Server option value is being set.
-
Value [in]
-
The value to be set for the option.
-
OptionId [in]
-
Numeric identifier of the option for which a value is to be set.
-
Prefix [in]
-
IPv6 subnet prefix of the scope on which the option value is to be set.
-
UserClass [in]
-
If specified, sets the option value for the specified user class
-
VendorClass [in]
-
If specified, sets the option value for the specified vendor class.
-
ComputerName [in]
-
DNS name or IP address of the target computer running the DHCP server service.
-
ReservedIP [in]
-
IPv6 address of the reservation for which the option value is to be set.
-
cmdletOutput [out]
-
An embedded instance of the DhcpServerv6OptionValue class.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\DHCP |
MOF |
|
DLL |
|