Share via


Add method of the PS_DnsServerZoneScope class

Adds a zone scope to a DNS zone.

Syntax

uint32 Add(
  [in]  string       ZoneName,
  [in]  string       Name,
  [in]  boolean      LoadExisting,
  [in]  boolean      PassThru,
  [in]  string       ComputerName,
  [out] DnsZoneScope cmdletOutput
);

Parameters

ZoneName [in]

The name of the zone that receives the zone scope.

Name [in]

The name of the zone scope to add.

LoadExisting [in]

Indicates whether to load the existing zone scope. True to load the zone scope; otherwise false.

PassThru [in]

Indicates whether the DnsZoneScope parameter returns an object. True to return an object; otherwise false.

ComputerName [in]

The computer name of the machine that hosts the DNS zone.

cmdletOutput [out]

The DnsZoneScope object that receives the zone scope.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPSProvider.Mof
DLL
DnsServerPSProvider.dll

See also

PS_DnsServerZoneScope