Add method of the PS_DhcpServerv4ExclusionRange class

Adds a range of excluded IP addresses for an IPv4 scope.

Syntax

uint32 Add(
  [in]  string                     ComputerName,
  [in]  string                     ScopeId,
  [in]  string                     StartRange,
  [in]  string                     EndRange,
  [in]  boolean                    PassThru,
  [out] DhcpServerv4ExclusionRange cmdletOutput
);

Parameters

ComputerName [in]

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

ScopeId [in]

The id of the IPv4 scope from which the IP addresses are being excluded.

StartRange [in]

The start IP address of the range being excluded

EndRange [in]

The end IP address of the range being excluded

PassThru [in]

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

cmdletOutput [out]

An embedded instance of a DhcpServerv4ExclusionRange object.

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_DhcpServerv4ExclusionRange