Skip to content

Latest commit

 

History

History
145 lines (112 loc) · 3.94 KB

File metadata and controls

145 lines (112 loc) · 3.94 KB
external help file DSInternals.PowerShell.dll-Help.xml
Module Name DSInternals
online version https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Get-ADDBDnsServerZone.md
schema 2.0.0

Get-ADDBDnsServerZone

SYNOPSIS

Retrieves the list of DNS zones stored in an Active Directory database.

SYNTAX

Get-ADDBDnsServerZone [-ZoneName <String>] -DatabasePath <String> [-LogPath <String>] [<CommonParameters>]

DESCRIPTION

This cmdlet retrieves the list of DNS zones that are stored in the specified Active Directory database file. This can be useful in some disaster recovery scenarios.

EXAMPLES

Example 1

PS C:\> Get-ADDBDnsServerZone -DatabasePath .\ntds.dit

<# Sample Output:
DistinguishedName   : DC=_msdcs.contoso.com,CN=MicrosoftDNS,DC=ForestDnsZones,DC=contoso,DC=com
ZoneName            : _msdcs.contoso.com
IsDsIntegrated      : True
IsReverseLookupZone : False
IsSigned            : False
SignWithNSEC3       : False
NSEC3CurrentSalt    :

DistinguishedName   : DC=contoso.com,CN=MicrosoftDNS,DC=DomainDnsZones,DC=contoso,DC=com
ZoneName            : contoso.com
IsDsIntegrated      : True
IsReverseLookupZone : False
IsSigned            : True
SignWithNSEC3       : False
NSEC3CurrentSalt    : 879006FFA707C0F7

DistinguishedName   : DC=adatum.com,CN=MicrosoftDNS,DC=DomainDnsZones,DC=contoso,DC=com
ZoneName            : adatum.com
IsDsIntegrated      : True
IsReverseLookupZone : False
IsSigned            : False
SignWithNSEC3       : False
NSEC3CurrentSalt    :

DistinguishedName   : DC=example.com,CN=MicrosoftDNS,DC=DomainDnsZones,DC=contoso,DC=com
ZoneName            : example.com
IsDsIntegrated      : True
IsReverseLookupZone : False
IsSigned            : False
SignWithNSEC3       : False
NSEC3CurrentSalt    :
#>

Retrieves the DNS zones from the specified Active Directory database file.

Example 2

PS C:\> Get-ADDBDnsServerZone -DatabasePath .\ntds.dit | Format-Table

<# Sample Output:
ZoneName           IsSigned IsReverseLookupZone
--------           -------- -------------------
_msdcs.contoso.com False    False
contoso.com        True     False
adatum.com         False    False
example.com        False    False
#>

Displays a condensed table of the DNS zones stored in the specified Active Directory database file.

PARAMETERS

-DatabasePath

Specifies the path to a domain database, for instance, C:\Windows\NTDS\ntds.dit.

Type: String
Parameter Sets: (All)
Aliases: Database, DBPath, DatabaseFilePath, DBFilePath

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LogPath

Specifies the path to a directory where the transaction log files are located. For instance, C:\Windows\NTDS. The default log directory is the one that contains the database file itself.

Type: String
Parameter Sets: (All)
Aliases: Log, TransactionLogPath

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ZoneName

Restricts the output to the DNS zone with the specified name. The value is matched case-insensitively against the zone's fully qualified domain name (FQDN).

Type: String
Parameter Sets: (All)
Aliases: Zone, DnsZone

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

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

INPUTS

System.String

OUTPUTS

DSInternals.Common.DNS.DnsZone

NOTES

RELATED LINKS

Get-ADDBDnsServerResourceRecord Get-ADDBDomainController