Share via


Remove method of the PS_DhcpServerv4OptionDefinition class

Delete one or more IPv4 option definitions from a DHCP Server.

Syntax

uint32 Remove(
  [in]  string                       ComputerName,
  [in]  uint32                       OptionId[],
  [in]  string                       VendorClass,
  [in]  boolean                      Passthru,
  [out] DhcpServerv4OptionDefinition cmdletOutput[]
);

Parameters

ComputerName [in]

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

OptionId [in]

Numeric identifiers of the option definitions to be deleted.

VendorClass [in]

If specified, deletes option definitions only for the specified vendor class

Passthru [in]

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

cmdletOutput [out]

An embedded instance of the DhcpServerv4OptionDefinition 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_DhcpServerv4OptionDefinition