Partager via


AddByFileForwardLookupZone method of the PS_DnsServerPrimaryZone class

Adds Primary zone on DNS server.

Syntax

uint32 AddByFileForwardLookupZone(
  [in]  string               ResponsiblePerson,
  [in]  string               DynamicUpdate,
  [in]  boolean              LoadExisting,
  [in]  string               ComputerName,
  [in]  string               Name,
  [in]  string               ZoneFile,
  [in]  string               VirtualizationInstance,
  [in]  boolean              PassThru,
  [out] DnsServerPrimaryZone cmdletOutput
);

Parameters

ResponsiblePerson [in]

Specifies the responsible person for the zone

DynamicUpdate [in]

Determines whether the specified zone accepts dynamic updates

The possible values are.

None ("None")

Secure ("Secure")

NonsecureAndSecure ("NonsecureAndSecure")

LoadExisting [in]

Specifies Loading of an existing zone

ComputerName [in]

Specifies the remote computer on which to execute the command

Name [in]

Specifies the name of the zone.

ZoneFile [in]

Specifies File based zone path or custom directory partition path

VirtualizationInstance [in]

Unique identifier of the virtualization instance.

Windows Server 2012 R2 and Windows Server 2012: This parameter is unavailable prior to Windows Server 2016.

PassThru [in]

True to return the object that was modified by the method. By default, this method does not generate any output.

cmdletOutput [out]

Receives an embedded instance of the DnsServerPrimaryZone class.

Requirements

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

See also

PS_DnsServerPrimaryZone