Share via


AddByInputObject method of the PS_DnsServerQueryResolutionPolicy class

Adds a query resolution policy to the DNS server

Syntax

uint32 AddByInputObject(
  [in]  boolean         PassThru,
  [in]  string          ComputerName,
  [in]  DnsServerPolicy InputObject,
  [in]  string          ZoneName,
  [out] DnsServerPolicy cmdletOutput
);

Parameters

PassThru [in]

true to return the current instance in the CmdletOutput parameter. The default is false.

ComputerName [in]

Optional DNS server name.

InputObject [in]

The input object on which to add.

ZoneName [in]

The name of the zone.

cmdletOutput [out]

On return, contains a DnsServerPolicy. This parameter returns a value only if PassThru is set to true.

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_DnsServerQueryResolutionPolicy