MichaelGrafnetter / DSInternals

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

Get-ADDBAccount -All -DBPath 'C:\temp\ntds.dit' -BootKey $Key not working- what should I do? #112

Closed boe1 closed 4 years ago

boe1 commented 4 years ago

Hello,

I installed the update to powershell 5.1.

I downloaded the latest zip file to a c:\temp folder I then extracted the contents to C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DSInternals

I'm running Windows 2012 R2 I ran the command Get-ADDBAccount -All -DBPath 'C:\temp\ntds.dit' -BootKey $Key

I got the following Get-ADDBAccount : Cannot validate argument on parameter 'BootKey'. The argument is null. Provide a valid value for the argument, and then try running the command again. At line:1 char:58

boe1 commented 4 years ago

My bad, I forgot to run $key = Get-BootKey -SystemHivePath 'C:\temp\SYSTEM' first

boe1 commented 4 years ago

PS - thanks for this great program!

MichaelGrafnetter commented 4 years ago

Glad that you have resolved it, @boe1 .