3

Why does this:

$RegistryKeys = (Get-ChildItem 
    HKLM:\SYSTEM\CurrentControlSet\services\VMSMP\Parameters\NicList)

foreach ($subKey in $RegistryKeys) {$subKey.GetValue("FriendlyName")}

Return this (text surrounded by asterisks are gibberish characters):

Corp **j**
LitwareInc Perimeter External **䑀**
LitwareInc Perimeter Internal **䑀**
LitwareInc Perimeter2 External
LitwareInc Perimeter2 Internal
Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
dpc
  • 31
  • 1

1 Answers1

2

It's not gibberish. They're multi-byte Unicode characters, which don't display properly in a cmd window.

See the second answer to this question for a solution.

Community
  • 1
  • 1
Ken White
  • 123,280
  • 14
  • 225
  • 444