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
{{ message }}
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
PS C:\Windows\System32> Get-WindowsCapability -Online
Get-WindowsCapability: Class not registered
PS C:\Windows\System32> Get-WindowsOptionalFeature -Online
Get-WindowsOptionalFeature: Class not registered
Same goes for Remove-WindowsOptionalFeature and Remove-WindowsCapablility
My system is: Windows 10 Enterprise v2004
My Powershell is: PowerShell 7.1.0-rc.2
PowerShell 7.1.2 confirm this behavior. At PS 5.1 not problem with this comandlet
I try to run this command at PS 7
Get-WindowsCapability -Online -LogPath "%WINDIR%\Logs\Dism\capability.log" -LogLevel WarningsInfo| ? Name -like 'OpenSSH*'
and try to run this command at PS 5
Get-WindowsCapability -Online -LogPath "%WINDIR%\Logs\Dism\capability5.log" -LogLevel WarningsInfo| ? Name -like 'OpenSSH*' capability5.log capability.log
Logs attached.
Since I stumbled about somthing like this some time ago it would be interesting if the problem persits if you load the dism module with -SkipEditionCheck
Activity
Alsiri0n commentedon Mar 11, 2021
PowerShell 7.1.2 confirm this behavior. At PS 5.1 not problem with this comandlet
I try to run this command at PS 7
Get-WindowsCapability -Online -LogPath "%WINDIR%\Logs\Dism\capability.log" -LogLevel WarningsInfo| ? Name -like 'OpenSSH*'
and try to run this command at PS 5
Get-WindowsCapability -Online -LogPath "%WINDIR%\Logs\Dism\capability5.log" -LogLevel WarningsInfo| ? Name -like 'OpenSSH*'
capability5.log
capability.log
Logs attached.
jschpp commentedon Mar 13, 2021
Since I stumbled about somthing like this some time ago it would be interesting if the problem persits if you load the dism module with
-SkipEditionCheckDShader commentedon Jun 8, 2021
-SkipEditionCheck is not available as a parameter for the Get-WindowsCapability command. -verbose and -debug do nothing as well
jschpp commentedon Jun 8, 2021
My mistake. I wasn't quite clear enough.
You need to import the Module like this: