Get-WindowsOptionalFeature Fails with 'Class Not Registered' Error

Windows 11

Active Members
Joined
Dec 10, 2024
Messages
16,532
Hi all,I’m facing an issue when trying to run this command in PowerShell:Get-WindowsOptionalFeature -OnlineThe error I receive is:Get-WindowsOptionalFeature: Class not registered Steps Taken So Far:Verified that the Windows Management Instrumentation (WMI) service is running and restarted it.Ran sfc /scannow to check for corrupted system files.Used DISM /online /cleanup-image /restorehealth to repair the Windows image.Ensured PowerShell is running as an administrator.I'm using Powershell 7.4.6.Despite these steps, the error persists, and I cannot query optional Windows features using this comm

Continue reading...
 
Back
Top