Git Product home page Git Product logo

Comments (6)

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

That is strange. Could you please try to run these 2 commands?

Get-ADDBAccount -All -DBPath 'D:\ntds.dit' -BootKey '13d20976d63ea5e836036ec8bc68d6eb'
Get-ADDBAccount -All -DBPath 'D:\ntds.dit' -BootKey $key.Trim()

How exactly did you populate the $key variable?

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

@Foneman38 Could you please also check that $key.GetType().Name really is String? What version of PowerShell do you have?

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

I have done a couple of more tests and it turned out that my code did not work if the String was encapsulated in a PSObject.

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

Hi @Foneman38 , could you please test the latest release? Thanks.

from dsinternals.

Foneman38 avatar Foneman38 commented on August 20, 2024

Version Name Type Repository Description


2.21.2 DSInternals Module PSGallery The DSInternals PowerShell Module

This is what I get with
Get-ADDBAccount -All -DBPath 'D:\ntds.dit' -BootKey '13d20976d63ea5e836036ec8bc68d6eb'
Get-ADDBAccount -All -DBPath 'D:\ntds.dit' -BootKey $key.Trim()

**Get-ADDBAccount : Secondary index is corrupt. The database must be defragmented or the affected index must be deleted.
If the corrupt index is over Unicode text, a likely cause is a sort-order change.
At line:1 char:1
+ Get-ADDBAccount -All -DBPath "D:\Stevens\ntds\ntds.dit" -BootKey $key ...
+     + CategoryInfo          : OpenError: (:) [Get-ADDBAccount], EsentSecondaryIndexCorruptedException
    + FullyQualifiedErrorId : DBContextError,DSInternals.PowerShell.Commands.GetADDBAccountCommand**

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

@Foneman38 This is expected behavior. Have you tried to defragment the DB using esentutl.exe, as the message says? The PS module is using native Windows ESE library to read the DB and this library has issues with backwards compatibility.

from dsinternals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.