Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Display Japanese characters in English Powershell console

$
0
0

Hi,

I am new to Powershell.I have problem in reading the output in Japanese ,below is the script I am using

$query = "Select * From Msvm_ComputerSystem "
$VOs = (gwmi -query $query -namespace "root\virtualization" -Cred $cred -Computername $computer )

This script runs in a server ,connects to remote hyper-v server to get information.

formatted output displays as shown below -

Name=WIN-B3529U0800R
ElementName=WIN-B3529U0800R
Description=Microsoft ???????
EnabledState=2
Caption=???????
IP=
ProcessId=
HostName=WIN-B3529U0800R
Name=AAA180ED-94A5-47D7-8F91-CEC30B351D5B
ElementName=?????
Description=Microsoft ???
EnabledState=2
Caption=???
IP=
HostName=WIN-B3529U0800R

All the question marks are Japanese characters which displays fine in Japanese powershell.Requirement is to get the ouput correctly(Japanes/Chinese) in English Hyper-v and pass it to java code for further processing.Please suggest how can I fix this.

Thanks,

Chetan


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>