Update DSInternals.DSAccount.ExportViews.format.ps1xml

This commit is contained in:
Carlos ciyi 2019-04-29 16:00:22 +02:00 committed by Michael Grafnetter
parent 51b8c005ce
commit 187ede3f4f
1 changed files with 2 additions and 1 deletions

View File

@ -170,10 +170,11 @@
<CustomItem>
<ExpressionBinding>
<ScriptBlock>
$historyNumber = 1
$records = [System.Collections.ArrayList]@()
foreach($hash in $PSItem.NTHashHistory)
{
$record = '{0}:{1}' -f $PSItem.SamAccountName, (ConvertTo-Hex $hash)
$record = '{0}_history{1}:{2}' -f $PSItem.SamAccountName, $historyNumber++, (ConvertTo-Hex $hash)
$position = $records.Add($record)
}
$records -join [Environment]::NewLine