Windows Dev Center

RemoveByIPAddress method of the PS_DhcpServerv4Lease class

Deletes the specified IPv4 address lease record from the DHCP server.

Syntax


uint32 RemoveByIPAddress(
  [in]  boolean PassThru,
  [in]  string  ComputerName,
  [in]  string  IPAddress[],
  [out] string  cmdletOutput[]
);

Parameters

PassThru [in]

If this parameter is specified, the cmdlet return the PowerShell objects which are deleted.

ComputerName [in]

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

IPAddress [in]

IP address(es) whose lease records are to be deleted

cmdletOutput [out]

An embedded instance of the DhcpServerv4Lease 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_DhcpServerv4Lease

 

 

Show:
© 2015 Microsoft