Windows Dev Center

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

None supported

Minimum supported server

Windows Server 2012

Namespace

Root\Microsoft\Windows\Dns

MOF

DnsServerPSProvider.mof

DLL

DnsServerPSProvider.dll

See also

PS_DnsServerPrimaryZone

 

 

Community Additions

ADD
Show:
© 2015 Microsoft