Поделиться через


RemoveByServer method of the PS_DnsServerQueryResolutionPolicy class

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

Syntax

uint32 RemoveByServer(
  [in]  boolean         Force,
  [in]  string          ComputerName,
  [in]  boolean         PassThru,
  [in]  string          Name,
  [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 to remove.

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