GetByScopeId method of the PS_DhcpServerv4Reservation class

Gets the IPv4 reservation(s) for the specified IP addresses or client identifiers. If only a scope identifier is specified, all IPv4 reservations from the specified scope are returned.

Syntax

uint32 GetByScopeId(
  [in]  string                  ScopeId,
  [in]  string                  ComputerName,
  [out] DhcpServerv4Reservation cmdletOutput[]
);

Parameters

ScopeId [in]

The scope identifier (in IPv4 address format) from which the reservations are to be retrieved.

ComputerName [in]

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

cmdletOutput [out]

An embedded instance of the DhcpServerv4Reservation 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_DhcpServerv4Reservation