次の方法で共有


RemoveByZone method of the PS_DnsServerQueryResolutionPolicy class

Removes the name resolution policy from a DNS server by zone.

Syntax

uint32 RemoveByZone(
  [in]  boolean         Force,
  [in]  string          ComputerName,
  [in]  boolean         PassThru,
  [in]  string          Name,
  [in]  string          ZoneName,
  [out] DnsServerPolicy cmdletOutput
);

Parameters

Force [in]

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

ComputerName [in]

Optional DNS server name.

PassThru [in]

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

Name [in]

The name of the policy.

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