Share via


AddByType method of the PS_DnsServerDirectoryPartition class

Create a DNS application directory partition.

Syntax

uint32 AddByType(
  [in]  string                      ComputerName,
  [in]  string                      Type,
  [in]  boolean                     PassThru,
  [out] DnsServerDirectoryPartition cmdletOutput
);

Parameters

ComputerName [in]

Specifies a remote DNS server. The acceptable values for this parameter are: an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

Type [in]

Specifies a type of DNS application directory partition. Valid values are Domain and Forest.

To create a default domain-wide DNS application directory partition for the Active Directory domain where the specified DNS server is located, specify Domain. To create a default forest-wide DNS application directory partition for the Active Directory forest where the specified DNS server is located, specify Forest. The ComputerName parameter is ignored for AllDomains DNS application directory partition. The computer from where you run this command must be joined to a domain in the forest where you want to create all of the default domain-wide application directory partitions.

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 DnsServerDirectoryPartition 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_DnsServerDirectoryPartition