Export (0) Print
Expand All
Expand Minimize

Get-DnsServerDirectoryPartition

Updated: January 17, 2013

Applies To: Windows Server 2012

Get-DnsServerDirectoryPartition

Gets a DNS application directory partition.

Syntax

Parameter Set: Custom
Get-DnsServerDirectoryPartition [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-Custom] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: Name
Get-DnsServerDirectoryPartition [-Name] <String> [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]




Detailed Description

The Get-DnsServerDirectoryPartition cmdlet gets one or more Domain Name System (DNS) application server directory partitions on a DNS server.

Parameters

-AsJob

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CimSession<CimSession[]>

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

Specifies a remote DNS server. You can specify 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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Custom

Returns custom directory partitions.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the FQDN of a DNS application directory partition.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ThrottleLimit<Int32>

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Management.Infrastructure.CimInstance#DnsServerDirectoryPartition

Examples

Example 1: Get all DNS application directory partitions

This command gets all the DNS application directory partitions on the local computer.


PS C:\> Get-DnsServerDirectoryPartition
server.DirectoryPartitionName        State                         Flags                         ZoneCount

----------------------------- ----- ----- ---------

DomainDnsZones.mytest.cont... 0(DNS_DP_OKAY) Enlisted Auto Domain 3

ForestDnsZones.mytest.cont... 0(DNS_DP_OKAY) Enlisted Auto Forest 2

Example 2: Get all custom application directory partitions

This command gets all the custom application directory partitions on the local computer.


PS C:\> Get-DnsServerDirectoryPartition -Custom
DirectoryPartitionName        State                         Flags                         ZoneCount

---------------------- ----- ----- ---------

DomainDnsZones.mytest.cont... 0(DNS_DP_OKAY) Enlisted Auto Domain 3

Example 3: Get an application directory partition by using name

This command gets the DNS application directory partition named DomainDnsZones.dept.contoso.com on the local computer.


PS C:\> Get-DnsServerDirectoryPartition -Name "DomainDnsZones.dept.contoso.com"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft