Mourdraug / FanControl.AsusWMI

Plugin for FanControl by Rem0o providing access to Asus motherboard sensors using Asus WMI
MIT License
50 stars 9 forks source link

PS check command error on Windows 11 #9

Open joser93 opened 2 months ago

joser93 commented 2 months ago

Greetings, I know that Windows 11 is not tested for this project, but, maybe is a good idea to review about it.

I was just testing the powershell command to check if the hardware is allowed to use, and got this error.

$asushw = Get-CimInstance -Namespace root/wmi -ClassName ASUSHW
Get-CimInstance : Invalid class
At line:1 char:11
+ $asushw = Get-CimInstance -Namespace root/wmi -ClassName ASUSHW
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (root/wmi:ASUSHW:String) [Get-CimInstance], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand

This is an expected error on unsupported hardware or the command should be different to check on Windows 11?

I am testing this on this version

Name                           Value
----                           -----
PSVersion                      5.1.22621.3810
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.3810
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
thegame4craft commented 1 month ago

Win11, and i have the error too