Freigeben über


ConvertToByFileZone method of the PS_DnsServerPrimaryZone class

Converts a zone to DNS server primary zone.

Syntax

uint32 ConvertToByFileZone(
  [in]  string               ComputerName,
  [in]  string               Name,
  [in]  boolean              LoadExisting,
  [in]  boolean              PassThru,
  [in]  string               ZoneFile,
  [in]  boolean              Force,
  [out] DnsServerPrimaryZone cmdletOutput
);

Parameters

ComputerName [in]

Specifies the remote computer on which to execute the command

Name [in]

Specifies name of the zone

LoadExisting [in]

Specifies existing file to be used while loading the zone

PassThru [in]

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

ZoneFile [in]

Specifies File based zone path or custom directory partition path.

Force [in]

Converts a zone without prompting you for confirmation. By default, the method prompts you for confirmation before it proceeds.

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