次の方法で共有


SetByCommonOptions method of the PS_DhcpServerv4OptionValue class

Sets an IPv4 Option Value at the Server, Scope or Reservation level. Any previously set option values for the specified option id are discarded.

Syntax

uint32 SetByCommonOptions(
  [in]  string                  PolicyName,
  [in]  boolean                 PassThru,
  [in]  boolean                 Force,
  [in]  string                  DnsDomain,
  [in]  string                  DnsServer[],
  [in]  string                  ReservedIP,
  [in]  string                  Router[],
  [in]  string                  ScopeId,
  [in]  string                  UserClass,
  [in]  string                  WinsServer[],
  [in]  string                  Wpad,
  [in]  string                  ComputerName,
  [out] DhcpServerv4OptionValue cmdletOutput[]
);

Parameters

PolicyName [in]

Name of the policy for which the option values are to be set.

PassThru [in]

If this parameter is specified, the cmdlet returns the PowerShell object which is modified.

Force [in]

If specified the DNS server validation will be skipped. This is applicable only if the DNS Server option value is being set.

DnsDomain [in]

Value for the DNS domain option

DnsServer [in]

Value(s) for the DNS Server option in IPv4 address format

ReservedIP [in]

IPv4 address of the reservation for which the option values are to be set.

Router [in]

Values for the router/default gateway option in IPv4 address format.

ScopeId [in]

Scope identifier (in IPv4 address format) for which the option values need to be set.

UserClass [in]

If specified, sets the option Value for the specified user class.

WinsServer [in]

Values for the WINS server option in IPv4 address format.

Wpad [in]

Value for the Web Proxy Auto detection option. The value for this option is specified as a URL.

ComputerName [in]

DNS name or IP address of the target computer running the DHCP server service.

cmdletOutput [out]

An embedded instance of the DhcpServerv4OptionValue class.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\DHCP
MOF
DhcpServerPsProvider.mof
DLL
DhcpServerPsProvider.dll

See also

PS_DhcpServerv4OptionValue