PSScriptTools icon indicating copy to clipboard operation
PSScriptTools copied to clipboard

[Bug]: Get-WindowsVersion/Get-WindowsVersionString on non-English based systems

Open t0rsten opened this issue 2 years ago • 1 comments

Describe the problem

On a non-English speaking system (in my case German) the following error message occurs.

2023-10-20_03h44_36

The reason is that systeminfo.exe is fully translated.

2023-10-20_03h43_37

Expectation

No response

Additional Information

From my point of view, systeminfo.exe should not be used and the WMI class Win32_OperatingSystem should be used instead.

(Get-CimInstance -ClassName Win32_OperatingSystem -Property Caption).Caption

PowerShell version

7.3

Platform

Windows 10 Pro or Enterprise

Additional Checks

  • [X] You are using the latest version of this module.
  • [X] You have read this repository's README file.
  • [X] You have read full help and examples for the command you are having problems with.
  • [ ] You are running PowerShell in an elevated session.
  • [X] You are running in a traditional PowerShell console or Windows Terminal

t0rsten avatar Oct 20 '23 01:10 t0rsten

I will take a look when I am back home. I think I went with the tool because it gave me extra info. But it has been a long time since I have looked at the command.

jdhitsolutions avatar Oct 20 '23 08:10 jdhitsolutions

I finally got a little free time to look at this. I see what is happening now. I will have to get creative here.

jdhitsolutions avatar May 30 '24 19:05 jdhitsolutions

I think I will have something in the next release for you to try.

jdhitsolutions avatar May 30 '24 20:05 jdhitsolutions

Let me know when I can test it.

t0rsten avatar Jun 01 '24 09:06 t0rsten

I have published 2.49.0 to the PowerShell Gallery if you want to update and test.

jdhitsolutions avatar Jun 06 '24 17:06 jdhitsolutions

Problem solved. Thanks a lot!

t0rsten avatar Jun 18 '24 16:06 t0rsten