RemoveByInputObject method of the PS_DnsServerResourceRecord class

Deletes the specified DNS Resource Record.

Syntax

uint32 RemoveByInputObject(
  [in]  DnsServerResourceRecord InputObject,
  [in]  string                  ZoneName,
  [in]  boolean                 PassThru,
  [in]  string                  ComputerName,
  [in]  boolean                 Force,
  [in]  string                  ZoneScope,
  [in]  string                  VirtualizationInstance,
  [out] DnsServerResourceRecord cmdletOutput
);

Parameters

InputObject [in]

The DnsServerResourceRecord that needs to be deleted.

ZoneName [in]

Specifies the name of the zone.

PassThru [in]

true to return the object that was modified by the method. By default, this method does not generate any output.

ComputerName [in]

Specifies the remote computer on which to execute the command

Force [in]

true to not require user confirmation before continuing with the operation; false to require user confirmation. The default is false.

ZoneScope [in]

Name of the zone scope.

Windows Server 2012: Not supported.

VirtualizationInstance [in]

Unique identifier of the virtualization instance.

Windows Server 2012 R2 and Windows Server 2012: This parameter is not supported before Windows Server 2016.

cmdletOutput [out]

Receives an embedded instance of the DnsServerResourceRecord class.

Requirements

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

See also

PS_DnsServerResourceRecord