Share via


Set method of the PS_DhcpServerv4Binding class

Binds or unbinds the DHCP server from the specified IPv4 interface on the system.

Syntax

uint32 Set(
  [in]  string              ComputerName,
  [in]  string              InterfaceAlias[],
  [in]  boolean             BindingState,
  [in]  boolean             PassThru,
  [out] DhcpServerv4Binding cmdletOutput[]
);

Parameters

ComputerName [in]

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

InterfaceAlias [in]

Name(s) of the interface in the system

BindingState [in]

Binding state of the interface. Can be set to true or false

PassThru [in]

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

cmdletOutput [out]

An embedded instance of a DhcpServerv4Binding object.

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_DhcpServerv4Binding