Closed tranzystorekk closed 1 year ago
Inspecting wslsys
seems to point towards the get_windows_uptime()
and get_win_system_type()
functions failing on my system
Can you try to type gcim Win32_OperatingSystem
in your Powershell Core and post the result?
~
❯ gcim Win32_OperatingSystem
Get-CimInstance: Invalid class
This seems to be a issue on your side: https://techcommunity.microsoft.com/t5/ask-the-performance-team/wmi-missing-or-failing-wmi-providers-or-invalid-wmi-class/ba-p/375485
this WMI class should exist on Windows
had some time to look at this, doing (in an elevated shell instance):
net stop winmgmt
winmgmt /resetrepository
worked for me
I will include this in the F&Q for ref for people in the future
Windows Version
Windows 11
Windows Build Number
22621.1555
WSL Version
WSL 2
Distro Version
Void Linux
WSL Utilities Version
4.1.1
Describe the bug
When running
wslfetch
, there are errors reported:Steps to Reproduce
Run
wslfetch
Expected behavior
No errors, complete and valid fetch info is provided
Additional context
Verified with Powershell 7.3.3 and 7.3.4
Code of Conduct