SetByFileZone method of the PS_DnsServerPrimaryZone class

Overwrites settings of DNS server primary zone.

Syntax


uint32 SetByFileZone(
  [in]   string Name,
  [in]   string ZoneFile,
  [in]   string ComputerName,
  [in]   boolean PassThru,
  [out]  string cmdletOutput
);

Parameters

Name [in]

Specifies the name of the zone.

ZoneFile [in]

Specifies file based zone path or custom directory partition path

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

Windows 8

Minimum supported server

Windows Server 2012

Namespace

\root\Microsoft\Windows\Dns

MOF

DnsServerPsProvider.mof

See also

PS_DnsServerPrimaryZone

 

 

Show:
© 2014 Microsoft