次の方法で共有


Get method of the PS_DhcpServerv4FreeIPAddress class

Gets free/unassigned IP Address(es) from the specified scope.

Syntax

uint32 Get(
  [in]  string ComputerName,
  [in]  string ScopeId,
  [in]  uint32 NumAddress,
  [in]  string StartAddress,
  [in]  string EndAddress,
  [out] string cmdletOutput[]
);

Parameters

ComputerName [in]

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

ScopeId [in]

Scope identifier (in IPv4 address format) from which the free IP address(es) are requested

NumAddress [in]

Number of free IP addresses requested. Default is 1.

StartAddress [in]

Start IP address of the range from which the free IP addresses are to be returned

EndAddress [in]

End IP address of the range from which the free IP addresses are to be returned

cmdletOutput [out]

An array of IP addresses from the scopes which are unallocated/ not leased.

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_DhcpServerv4FreeIPAddress