| external help file | DSInternals.PowerShell.dll-Help.xml |
|---|---|
| Module Name | DSInternals |
| online version | |
| schema | 2.0.0 |
Retrieves the list of DNS zones stored in an Active Directory database.
Get-ADDBDnsZone -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-ADDBDnsZone -DatabasePath .\ntds.dit
<# Sample Output:
_msdcs.contoso.com
contoso.com
#>Retrieves the DNS zones from 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.