Powershell - converting hex from the registry key -
i have following output mru list. how can convert string or ascii characters?
'gp "hkcu:\software\microsoft\windows\currentversion\explorer\comdlg32\lastvisitedpidlmru"'
18 : {80, 0, 120, 0...}
5 : {50, 0, 109, 0...}
assuming gp "hkcu:\software\microsoft\windows\currentversion\explorer\comdlg32\lastvisitedpidlmru"
gives :
pspath : microsoft.powershell.core\registry::hkey_current_user\software\microsoft\windows\currentversion\explorer\comdlg32\lastvisitedpidlmru psparentpath : microsoft.powershell.core\registry::hkey_current_user\software\microsoft\windows\currentversion\explorer\comdlg32 pschildname : lastvisitedpidlmru psdrive : hkcu psprovider : microsoft.powershell.core\registry mrulistex : {14, 0, 0, 0...} 11 : {114, 0, 117, 0...} 9 : {69, 0, 120, 0...} 19 : {83, 0, 107, 0...} 10 : {78, 0, 79, 0...} 17 : {123, 0, 57, 0...} 15 : {115, 0, 108, 0...} 7 : {123, 0, 57, 0...} 4 : {118, 0, 109, 0...} 21 : {109, 0, 115, 0...} 22 : {100, 0, 101, 0...} 24 : {123, 0, 55, 0...} 8 : {123, 0, 69, 0...} 0 : {123, 0, 69, 0...} 5 : {123, 0, 66, 0...} 12 : {83, 0, 110, 0...} 20 : {123, 0, 55, 0...} 23 : {83, 0, 99, 0...} 2 : {65, 0, 99, 0...} 16 : {110, 0, 111, 0...} 1 : {105, 0, 101, 0...} 18 : {75, 0, 105, 0...} 6 : {99, 0, 104, 0...} 13 : {123, 0, 55, 0...} 3 : {123, 0, 54, 0...} 14 : {123, 0, 57, 0...}
you can try:
[system.text.encoding]::unicode.getstring((gp "hkcu:\software\microsoft\windows\currentversion\explorer\comdlg32\lastvisitedpidlmru")."11")
this not good, can help
Comments
Post a Comment