次の方法で共有


Enable method of the PS_DNSServerPolicy class

Enables a DNS server policy.

Syntax

uint32 Enable(
  [in] string  Level,
  [in] string  Name,
  [in] string  ComputerName,
  [in] string  ZoneName,
  [in] boolean Force
);

Parameters

Level [in]

The level of the policy.

Server

The policy applies to a single server.

Zone

The policy applies to a zone.

Name [in]

Name of the policy.

ComputerName [in]

Optional DNS server name.

ZoneName [in]

The name of the zone.

Force [in]

If specified, overrides the default confirmation before performing the operation.

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_DNSServerPolicy