| 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 |
Retrieves the list of DNS zones stored in an Active Directory database.
Get-ADDBDnsServerZone [-ZoneName <String>] -DatabasePath <String> [-LogPath <String>] [<CommonParameters>]
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.
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.
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.
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: FalseSpecifies 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: FalseRestricts 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.