PSScriptTools
PSScriptTools copied to clipboard
[Bug]: Get-WindowsVersion/Get-WindowsVersionString on non-English based systems
Describe the problem
On a non-English speaking system (in my case German) the following error message occurs.
The reason is that systeminfo.exe is fully translated.
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
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.
I finally got a little free time to look at this. I see what is happening now. I will have to get creative here.
I think I will have something in the next release for you to try.
Let me know when I can test it.
I have published 2.49.0 to the PowerShell Gallery if you want to update and test.
Problem solved. Thanks a lot!