Compartilhar via


AddByZone method of the PS_DnsServerZoneTransferPolicy class

Adds a new zone transfer policy by zone.

Syntax

uint32 AddByZone(
  [in]  string          ComputerName,
  [in]  boolean         PassThru,
  [in]  string          TransportProtocol,
  [in]  string          TimeOfDay,
  [in]  string          ServerInterfaceIP,
  [in]  uint32          ProcessingOrder,
  [in]  string          ClientSubnet,
  [in]  boolean         Disable,
  [in]  string          InternetProtocol,
  [in]  string          Name,
  [in]  string          Condition,
  [in]  string          ZoneName,
  [in]  string          Action,
  [out] DnsServerPolicy cmdletOutput
);

Parameters

ComputerName [in]

Optional DNS server name.

PassThru [in]

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

TransportProtocol [in]

Transport protocol criteria.

TimeOfDay [in]

time of day criteria.

ServerInterfaceIP [in]

The server interface.

ProcessingOrder [in]

The order in which the query will be processed.

ClientSubnet [in]

Client subnet record name.

Disable [in]

true to disable; otherwise false.

InternetProtocol [in]

Internet Protocol criteria.

Name [in]

Name of the policy.

Condition [in]

The condition of the policy.

And

Or

ZoneName [in]

Name of the zone.

Action [in]

Action taken if policy is matched.

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_DnsServerZoneTransferPolicy