GetByBadLeases method of the PS_DhcpServerv4Lease class

Gets one or more lease records from the DHCP server.

Syntax

uint32 GetByBadLeases(
  [in]  string            ComputerName,
  [in]  boolean           BadLeases,
  [in]  string            ScopeId,
  [out] DhcpServerv4Lease cmdletOutput[]
);

Parameters

ComputerName [in]

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

BadLeases [in]

If specified, only bad leases are returned. If an IP address lease is declined by the client because of a conflict, the lease record is marked as bad (declined) by the DHCP server. An IP address lease in this state is not offered to any client until expiry of a timer (10 minutes).

ScopeId [in]

Scope identifier (in IPv4 address format) from which the IPv4 address leases are to be retrieved

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