You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to ensure compatibility with PowerShell Version 7, change Get-WMIObject to Get-CimInstance. Reason:
Powershell 7 is based on .Net Core and .Net Core does not support WMI.
TuemmlerKelch
changed the title
Windows 11 Report fails in multiple occasions
PowerShell from ms store fails when calling Get-Windowsoptionalfeature
Sep 29, 2023
SteffenWinternheimer
changed the title
PowerShell from ms store fails when calling Get-Windowsoptionalfeature
Replace Get-WMIObject with Get-CimInstance to ensure compatibility with PowerShell 7.X
Oct 4, 2023
In order to ensure compatibility with PowerShell Version 7, change Get-WMIObject to Get-CimInstance. Reason:
Powershell 7 is based on .Net Core and .Net Core does not support WMI.
https://forums.powershell.org/t/powershell-7-is-missing-get-wmiobject/14011
The text was updated successfully, but these errors were encountered: