Update PowerView.ps1
userparameters will be throw error ,when use Export-Clixml,
This commit is contained in:
parent
f94a5d298a
commit
cc8559e535
|
|
@ -3210,6 +3210,9 @@ A custom PSObject with LDAP hashtable properties translated.
|
||||||
$ObjectProperties[$_] = [datetime]::fromfiletime($Properties[$_][0])
|
$ObjectProperties[$_] = [datetime]::fromfiletime($Properties[$_][0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elseif ($_ -eq 'userparameters') {
|
||||||
|
$ObjectProperties[$_] = [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($Properties[$_][0]))
|
||||||
|
}
|
||||||
elseif ( ($_ -eq 'lastlogon') -or ($_ -eq 'lastlogontimestamp') -or ($_ -eq 'pwdlastset') -or ($_ -eq 'lastlogoff') -or ($_ -eq 'badPasswordTime') ) {
|
elseif ( ($_ -eq 'lastlogon') -or ($_ -eq 'lastlogontimestamp') -or ($_ -eq 'pwdlastset') -or ($_ -eq 'lastlogoff') -or ($_ -eq 'badPasswordTime') ) {
|
||||||
# convert timestamps
|
# convert timestamps
|
||||||
if ($Properties[$_][0] -is [System.MarshalByRefObject]) {
|
if ($Properties[$_][0] -is [System.MarshalByRefObject]) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue