When running
Get-ADDBAccount -All -DBPath "$Path\Active Directory\ntds.dit" -BootKey $key | Format-Custom -View PWDump
under the system account context (Which our automation system does), the output is broken into multiple lines. For example -
User:2677:NO
LM-HASH**********************:1111111111111111111111111:::
Where output should show as a single line -
User2677:NO LM-HASH**********************:1111111111111111111111111::::
Can replicate this by starting Powershell using PSEXEC as the system.
When running
Get-ADDBAccount -All -DBPath "$Path\Active Directory\ntds.dit" -BootKey $key | Format-Custom -View PWDumpunder the system account context (Which our automation system does), the output is broken into multiple lines. For example -
User:2677:NOLM-HASH**********************:1111111111111111111111111:::Where output should show as a single line -
User2677:NO LM-HASH**********************:1111111111111111111111111::::Can replicate this by starting Powershell using PSEXEC as the system.