MichaelGrafnetter / DSInternals

Directory Services Internals (DSInternals) PowerShell Module and Framework
https://www.dsinternals.com
MIT License
1.62k stars 250 forks source link

Error using Get-ADDBAccount: An item with the same key has already been added. #131

Closed soptec99 closed 2 years ago

soptec99 commented 2 years ago

Hi i get an error when using a big database >1.7G :+1 please could you help me Michael? Get-ADDBAccount -All -DBPath "ntds.dit" -BootKey $key Get-ADDBAccount : An item with the same key has already been added. At line:1 char:1

The Stacktrace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at DSInternals.DataStore.DirectorySchema.LoadAttributeProperties(Cursor dataTableCursor) in d:\a\1\s\Src\DSInternals.DataStore\DirectorySchema.cs:line 255 at DSInternals.DataStore.DirectorySchema..ctor(IsamDatabase database) in d:\a\1\s\Src\DSInternals.DataStore\DirectorySchema.cs:line 39 at DSInternals.DataStore.DirectoryContext..ctor(String dbFilePath, Boolean readOnly, String logDirectoryPath) in d:\a\1\s\Src\DSInternals.DataStore\DirectoryContext.cs:line 100 at DSInternals.PowerShell.Commands.ADDBCommandBase.BeginProcessing()

MichaelGrafnetter commented 2 years ago

Hi @soptec99 , could you please test DSInternals v4.5?

MichaelGrafnetter commented 2 years ago

This is probably the same issue as discussed in #118