PS_DhcpServerv4Lease class

DhcpServer v4Lease.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[ClassVersion("1.0.0"), dynamic, provider("DhcpServerPSProvider"), AMENDMENT]
class PS_DhcpServerv4Lease
{
};

Members

The PS_DhcpServerv4Lease class has these types of members:

Methods

The PS_DhcpServerv4Lease class has these methods.

Method Description
Add Adds a new IPv4 address lease in the DHCP server
GetByBadLeases Gets one or more lease records from the DHCP server
GetByClientId Gets one or more lease records from the DHCP server
GetByIPAddress Gets one or more lease records from the DHCP server
GetByScopeId Gets one or more lease records from the DHCP server
RemoveByBadLeases Deletes the specified IPv4 address lease record from the DHCP server
RemoveByClientId Deletes the specified IPv4 address lease record from the DHCP server
RemoveByIPAddress Deletes the specified IPv4 address lease record from the DHCP server
RemoveByScopeId Deletes the specified IPv4 address lease record from the DHCP server

Requirements

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