Shane

Results 5 comments of Shane

As the same, but I got an error message "invalid class when querying Win32_ComputerSystem".

> Why? What is the problem with double quotes in Chinese? I run the script in powershell 4.0 (Windows Server 2012 R2) and its output as follows: ``` + $a...

It's no problem with PowerShell 6.2.

> It's because of the encoding of the script. You want `PSUseBOMForUnicodeEncodedFile`. > > The script is in UTF-8, but Windows PowerShell 5.1 and under default to an extended ASCII...