Remove method of the PS_DhcpServerv4Policy class

Deletes the specified IPv4 policy(ies) either at the server level or the specified scope level.

Syntax

uint32 Remove(
  [in]  string             ComputerName,
  [in]  boolean            PassThru,
  [in]  string             Name[],
  [in]  string             ScopeId,
  [out] DhcpServerv4Policy cmdletOutput[]
);

Parameters

ComputerName [in]

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

PassThru [in]

If this parameter is specified, the cmdlet returns the PowerShell object which is modified.

Name [in]

Name(s) of the policies to be deleted.

ScopeId [in]

Scope Identifier (in IPv4 address format) from which the policies are to be deleted.

cmdletOutput [out]

An embedded instance of the DhcpServerv4Policy 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_DhcpServerv4Policy