-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-ADDBAccount : Currency not on a record #61
Comments
Hi @limp15000 , could you please share the stack trace of that exception? You can retrieve it using the following command: |
Hi, Best regards, |
Hi @limp15000, this seems to be unrelated to the first error. It only says that Get-BootKey must be run under admin, as it needs to mount the registry hive. |
Oups, my bad... had just ran the get-key command... |
@limp15000 That still seems to be an unrelated exception. Please check the $Error variable for the exception with the "Currency not on a record" message (which should of course be "Currently...", but there is a bug in the MS library). |
Sorry I realise I'm not very good at debugging powershell :P Get-ADDBAccount : Currency not on a record
Set-Location : A positional parameter cannot be found that accepts argument 'passwords'.
e[] data, Int32 dataSize, Int32 dataOffset, Int32& actualDataSize, RetrieveColumnGrbit grbit, JET_RETINFO retinfo) |
I am receiving the same error however, I am running Server 2016 build 2551. Not sure if it matters, but I extracted the NTDS.dit file by booting a domain controller's (actually tried 2 different DCs) hyper-v replica to windows PE where I copied the ntds.dit file directly from the windows\ntds folder. I then dumped the system registry hive from the live DC. I then ran esentutl /p .\ntds.dit /8 /o to repair the file since the file was marked as not clean (Happened on both DCs) Also, the NTDS.dit file is rather large at 312mb. I received the errors below when I tried the get-addbaccount command on both the live DC, a test DC and a windows 10 1803 workstation. `Get-ADDBAccount : Currency not on a record
|
Thanks @joef12345 and @limp15000 for testing. I have to admit that I have not tested DSInternals with the most recent builds of Windows Server 2016, nor 2019. Your error descriptions point to some changes in schema indexing. I wonder if you could share a test ntds.dit file with me (definitely not a production one!!!) to save me some time installing a new DC. |
Thanks Michael! I actually just built a test 2016 DC the other day! I will run a test on that DC to make sure the problem is preset and if so, I will send you the file. Thanks again for all your help!! |
Just to say I use DSInternals on 2016 and it works fine. I use it in online mode thou. English. Maybe language is the problem? |
Thanks, @PrzemyslawKlys , for confirming that the online cmdlets work fine with 2016. The offline ones are trickier, as they leverage much more totally undocumented stuff. |
Michael, I tested the NTDS.DIT file from my test domain controller (Server 2016) and it worked so we can rule out a problem with the schema. I am going to power down a DC and capture the NTDS file when the machine is correctly powered down rather than pulling the file from a replica. Unfortunately I will have to do this after hours so I won't have the results until later today. |
@joef12345 Thanks. Or you could create an IFM backup which uses Volume Shadow Copy on a running DC. |
Thanks Michael, I don't think I will be able to get permission to allow access to the live NTDS file. I am going to play around with the NTDS file and see if I can figure out what is going on and I will report back with my findings. Thanks again for all your hard work, it is greatly appreciated. |
I have a test vm with 2016. You can break it if you want? If it helps at all. |
I took the replica server and booted into windows with the network adapter disconnected and then properly shutdown the machine and then booted into PE and copied over the NTDS file. This time I did not receive any errors and it worked perfectly! I would have used the shadow copy trick but I for one did not want to do anything to our live DC and two felt I would run into the same problem since the database would be not be in a clean state. So we can confirm that everything still works in server 2016 fully patched. Thanks again!! |
Thanks @joef12345 . So the DB was not in a clean state and the API did not detect it. Strange. It seems like broken index then. I just wonder if you store transaction logs in the same directory as ntds.dit and if you copied them out together with ntds.dit before running DSInternals. |
Hi,
Just tried your ps module on with the ntds.dit file from a 2012 R2 DC.
PS-Module is running on my Windows 10 1803 Enteprise.
Getting the following error :
et-ADDBAccount : Currency not on a record
t line:1 char:1
Get-ADDBAccount -DBPath .\ntdsnew.dit -BootKey $key -all
The text was updated successfully, but these errors were encountered: