Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

DISM commands not compatible #87

Open

Description

@panos-coupa

Some commands in the DISM module are not running

for example:

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

Thanks for your time

Activity

  1. Alsiri0n commented on Mar 11, 2021

    @Alsiri0n

    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.

  2. jschpp commented on Mar 13, 2021

    @jschpp

    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

  3. DShader commented on Jun 8, 2021

    @DShader

    -SkipEditionCheck is not available as a parameter for the Get-WindowsCapability command. -verbose and -debug do nothing as well

  4. jschpp commented on Jun 8, 2021

    @jschpp

    My mistake. I wasn't quite clear enough.

    You need to import the Module like this:

    Import-Module -SkipEditionCheck DISM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions