Partager via


SetByADZone method of the PS_DnsServerPrimaryZone class

Overwrites settings of DNS server primary zone.

Syntax

uint32 SetByADZone(
  [in]  string               Name,
  [in]  string               ReplicationScope,
  [in]  string               DirectoryPartitionName,
  [in]  string               ComputerName,
  [in]  boolean              PassThru,
  [out] DnsServerPrimaryZone cmdletOutput
);

Parameters

Name [in]

Specifies the name of the zone.

ReplicationScope [in]

Specifies the directory partition on which to store the zone. FQDN: Specifies fully qualified domain name of the directory partition. domain: Stores the zone on the domain directory partition. enterprise: Stores the zone on the enterprise directory partition. legacy: Stores the zone on a legacy directory partition. Parameter valid only if it is AD based. In case of file, this is the file path.

The possible values are.

Forest ("Forest")

Domain ("Domain")

Legacy ("Legacy")

Custom ("Custom")

DirectoryPartitionName [in]

Specifies the directory partition on which to store the zone.

ComputerName [in]

Specifies the remote computer on which to execute the command

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