2018-10-01 09:49:43 +00:00
---
external help file: DSInternals.PowerShell.dll-Help.xml
Module Name: DSInternals
2018-10-14 12:10:18 +00:00
online version: https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Get-ADDBDomainController.md
2018-10-01 09:49:43 +00:00
schema: 2.0.0
---
# Get-ADDBDomainController
## SYNOPSIS
2018-10-14 12:10:18 +00:00
Reads information about the originating DC from a ntds.dit file, including domain name, domain SID, DC name and DC site.
2018-10-01 09:49:43 +00:00
## SYNTAX
```
2019-06-14 05:44:02 +00:00
Get-ADDBDomainController -DatabasePath < String > [-LogPath < String > ] [< CommonParameters > ]
2018-10-01 09:49:43 +00:00
```
## DESCRIPTION
{{Fill in the Description}}
## EXAMPLES
### Example 1
```powershell
PS C:\> {{ Add example code here }}
```
{{ Add example description here }}
## PARAMETERS
2019-06-14 05:44:02 +00:00
### -DatabasePath
Specifies the path to a domain database, for instance, C:\Windows\NTDS\ntds.dit.
2018-10-01 09:49:43 +00:00
```yaml
Type: String
Parameter Sets: (All)
2019-06-14 05:44:02 +00:00
Aliases: Database, DBPath, DatabaseFilePath, DBFilePath
2018-10-01 09:49:43 +00:00
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -LogPath
2019-06-14 05:44:02 +00:00
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.
2018-10-01 09:49:43 +00:00
```yaml
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### None
## OUTPUTS
### DSInternals.PowerShell.DomainController
## NOTES
## RELATED LINKS