Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 1.95 KB

File metadata and controls

85 lines (61 loc) · 1.95 KB
external help file DSInternals.PowerShell.dll-Help.xml
Module Name DSInternals
online version
schema 2.0.0

Get-ADDBDnsZone

SYNOPSIS

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

SYNTAX

Get-ADDBDnsZone -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-ADDBDnsZone -DatabasePath .\ntds.dit

<# Sample Output:
_msdcs.contoso.com
contoso.com
#>

Retrieves the DNS zones from 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

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

None

OUTPUTS

System.String

NOTES

RELATED LINKS

Get-ADDBDnsResourceRecord Get-ADDBDomainController