Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell from ms store fails when calling Get-Windowsoptionalfeature #411

Closed
SteffenWinternheimer opened this issue Oct 4, 2023 · 3 comments
Assignees
Labels
wontdo This will not be worked on
Milestone

Comments

@SteffenWinternheimer
Copy link
Collaborator

There is an issue with Windows PowerShell being offered by MS store right now: Get-WindowsOptionalFeature -Online fails on 7.1.0-rc.2 (MSIX)- [Get-WindowsOptionalFeature: Class not registered]

MicrosoftTeams-image

As MS has not fixed this in the last few months, we should implement a workaround to cope for this by importing DISM:
PowerShell/PowerShell#13866 (comment)

@SteffenWinternheimer SteffenWinternheimer added this to the 5.6.1 milestone Oct 4, 2023
@SteffenWinternheimer SteffenWinternheimer self-assigned this Oct 4, 2023
@SteffenWinternheimer SteffenWinternheimer modified the milestones: 5.6.1, 5.7 Oct 4, 2023
@SteffenWinternheimer
Copy link
Collaborator Author

We move from using "Get-WindowsOptionalFeature" to DISM. Reason is that DISM is also supported on PowerShell Version 7. All occurences of Get-WindowsOptionalFeature will be replaced with "dism /Online /Get-Features".

Here is an example:
grafik

@TuemmlerKelch TuemmlerKelch added the enhancement New feature or request label Oct 4, 2023
@TuemmlerKelch
Copy link
Collaborator

Please provide a list of unclear commands, I will provide the proper checks

@TuemmlerKelch TuemmlerKelch added the information needed Extra attention is needed label Nov 6, 2023
@SteffenWinternheimer SteffenWinternheimer modified the milestones: 5.7, 5.7.1 Nov 13, 2023
@SteffenWinternheimer SteffenWinternheimer added wontdo This will not be worked on and removed enhancement New feature or request information needed Extra attention is needed labels Nov 20, 2023
@SteffenWinternheimer
Copy link
Collaborator Author

We only support PowerShell version 5.X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontdo This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants