--- external help file: DSInternals.PowerShell.dll-Help.xml Module Name: DSInternals online version: https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Set-ADDBDomainController.md schema: 2.0.0 --- # Set-ADDBDomainController ## SYNOPSIS Writes information about the DC to a ntds.dit file, including the highest commited USN and database epoch. ## SYNTAX ### USN ``` Set-ADDBDomainController [-Force] -DBPath [-LogPath ] -HighestCommittedUsn [] ``` ### Epoch ``` Set-ADDBDomainController [-Force] -DBPath [-LogPath ] -Epoch [] ``` ### Expiration ``` Set-ADDBDomainController [-Force] -DBPath [-LogPath ] -BackupExpiration [] ``` ## DESCRIPTION {{Fill in the Description}} ## EXAMPLES ### Example 1 ```powershell PS C:\> {{ Add example code here }} ``` {{ Add example description here }} ## PARAMETERS ### -BackupExpiration {{Fill BackupExpiration Description}} ```yaml Type: DateTime Parameter Sets: Expiration Aliases: Expiration, Expire Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -DBPath TODO ```yaml Type: String Parameter Sets: (All) Aliases: Database, DatabasePath, DatabaseFilePath, DBFilePath Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Epoch {{Fill Epoch Description}} ```yaml Type: Int32 Parameter Sets: Epoch Aliases: DSAEpoch Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Force {{Fill Force Description}} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -HighestCommittedUsn {{Fill HighestCommittedUsn Description}} ```yaml Type: Int64 Parameter Sets: USN Aliases: USN Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -LogPath TODO ```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 ### None ## NOTES ## RELATED LINKS