Share via


AddByServer method of the PS_DnsServerZoneTransferPolicy class

Adds a new zone transfer policy by server.

Syntax

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

Parameters

ComputerName [in]

Specifies a DNS server. If you do not specify this parameter, the command runs on the local system.

PassThru [in]

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

Action [in]

Action taken if policy is matched.

ClientSubnet [in]

Client subnet record name.

Condition [in]

The condition of the policy.

And

Or

InternetProtocol [in]

Internet Protocol criteria

Disable [in]

true to disable; otherwise false.

Name [in]

Name of the policy.

ProcessingOrder [in]

The order in which the query will be processed.

ServerInterfaceIP [in]

The server interface.

TimeOfDay [in]

time of day criteria.

TransportProtocol [in]

transport protocol criteria.

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