Remove method of the Ps_DnsServerClientSubnet class

Deletes a client subnet record from the client subnet database on the DNS server.

Syntax

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

Parameters

Name [in]

The name of the client subnet record.

PassThru [in]

True to return the client subnet record in the cmdletOutput parameter; otherwise, false.

Force [in]

Name of the client subnet record

ComputerName [in]

The name of the remote computer on which to execute the command.

cmdletOutput [out]

When this method returns, this parameter receives an embedded instance of the DnsServerClientSubnet object that represents the deleted subnet record.

Return value

If this operation succeeds, this method returns "0"; otherwise, it returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPSProvider.mof
DLL
DnsServerPSProvider.dll

See also

Ps_DnsServerClientSubnet