Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit 16901f7

Browse files
committed
include new guideline
1 parent 4e56b3f commit 16901f7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

faq.md

+21
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@ This is a limitation of WSL and it is expected. when running the shortcut, it wi
1414

1515
the package has moved to a new location <https://pkg.wslutiliti.es/> that do not relies on my personal website. For old users, you should remove the `http://access.patrickwu.space` entry from `/etc/apt/sources.list` and readd following the guidelines for Kali Linux and Debian GNU/Linux.
1616

17+
## the utility raises errors at `gcim Win32_OperatingSystem`. What Should I do?
18+
19+
> from <https://github.com/wslutilities/wslu/issues/275>
20+
21+
You might encounter this error when executing `wslsys` or `wslview` that throws error like the following:
22+
23+
```
24+
+ ... coding(852); [int64]((get-date) - (gcim Win32_OperatingSystem).LastBo ...
25+
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
+ CategoryInfo : MetadataError: (root\cimv2:Win32_OperatingSystem:String) [Get-CimInstance], CimException
27+
+ FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
28+
```
29+
30+
In this case, the WMI class `Win32_OperatingSystem` is not available on your system. You can try to rebuild the WMI repository by following the steps below:
31+
32+
```
33+
net stop winmgmt
34+
winmgmt /resetrepository
35+
```
36+
37+
1738
## What is the error code returned?
1839

1940
| error code | description |

0 commit comments

Comments
 (0)