https://bugs.winehq.org/show_bug.cgi?id=54463
Bug ID: 54463 Summary: wbemprox: wrong version value is returned from win32_operatingsystem on win10 (regression) Product: Wine Version: 8.1 Hardware: x86-64 URL: https://github.com/PowerShell/PowerShell/releases/down load/v7.0.3/PowerShell-7.0.3-win-x64.msi OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com CC: hans@meelstraat.net Distribution: Debian
Following powershell script returns wrong version on win10 (winetricks dotnet48 is required):
$searcher = [wmisearcher]'Select version From win32_operatingsystem' $searcher.scope.path = "\.\root\cimv2" $searcher.get()
Result:
__GENUS : 2 __CLASS : Win32_OperatingSystem __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : Version : 6.3.18362 PSComputerName :
In wine 8.0 it reports correctly:
__GENUS : 2 __CLASS : Win32_OperatingSystem __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : Version : 10.0.18362 PSComputerName :
This bug results in Chocolateley downloading tons off MB's off updates because it believes version is <win10.