Title: DISM cmdlets not working in Powershell 7 · Issue #15428 · PowerShell/PowerShell · GitHub
Open Graph Title: DISM cmdlets not working in Powershell 7 · Issue #15428 · PowerShell/PowerShell
X Title: DISM cmdlets not working in Powershell 7 · Issue #15428 · PowerShell/PowerShell
Description: Steps to reproduce Type Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' Expected behavior Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvement...
Open Graph Description: Steps to reproduce Type Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' Expected behavior Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest Pow...
X Description: Steps to reproduce Type Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' Expected behavior Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the la...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/15428
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DISM cmdlets not working in Powershell 7","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).\r\n\r\n-->\r\n\r\n## Steps to reproduce\r\n\r\nType\r\n```\r\nGet-WindowsCapability -Online | ? Name -like 'OpenSSH*'\r\n```\r\n\r\n## Expected behavior\r\n\r\n```\r\nWindows PowerShell\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nInstall the latest PowerShell for new features and improvements! https://aka.ms/PSWindows\r\n\r\nPS C:\\Users\\Administrator> Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'\r\n\r\n\r\nName : OpenSSH.Client~~~~0.0.1.0\r\nState : Installed\r\n\r\nName : OpenSSH.Server~~~~0.0.1.0\r\nState : NotPresent\r\n```\r\n\r\n## Actual behavior\r\n\r\n```\r\nPowerShell 7.2.0-preview.5\r\nCopyright (c) Microsoft Corporation.\r\n\r\nhttps://aka.ms/powershell\r\nType 'help' to get help.\r\n\r\nPS C:\\openssh> Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'\r\nGet-WindowsCapability: Class not registered\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\nPowershell 5.1 (working)\r\n\r\n```\r\nPS C:\\Users\\Administrator> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 5.1.21376.1\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.21376.1\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n```\r\n\r\nPowershell 7 (installed from Store)\r\n```\r\nPS C:\\openssh> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.2.0-preview.5\r\nPSEdition Core\r\nGitCommitId 7.2.0-preview.5\r\nOS Microsoft Windows 10.0.21376\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n## Additional Notes\r\n\r\nReferenced in Powershell/WindowsCompatibility#87\r\nI wasn't sure if it was the right place to report this issue, so I'm reporting here.","author":{"url":"https://github.com/blacklightpy","@type":"Person","name":"blacklightpy"},"datePublished":"2021-05-20T03:11:20Z","url":"https://github.com/PowerShell/PowerShell/issues/15428"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ffc9bb96-e3b4-339c-bca6-b0d0d2804662 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D578:357787:7CCC18:AA9FC4:6AFD17BE |
| html-safe-nonce | 6b421ddd4f4f476f7d6b18a53f21eb87fb087217767658e23c40cef3fb09c969 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTc4OjM1Nzc4Nzo3Q0NDMTg6QUE5RkM0OjZBRkQxN0JFIiwidmlzaXRvcl9pZCI6IjczMzg2MDc1MTE0NjY3NDM3NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d2651635c2f54cc5c950a52097655c7491cc8021a9789de30151250241ced96d |
| hovercard-subject-tag | issue:896218917 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/15428/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e771dd69ea858a081f4d6518de65cc13dbc7a904cf92679674c4d9f8e1d911e1/PowerShell/PowerShell/issues/15428 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e771dd69ea858a081f4d6518de65cc13dbc7a904cf92679674c4d9f8e1d911e1/PowerShell/PowerShell/issues/15428 |
| og:image:alt | Steps to reproduce Type Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' Expected behavior Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest Pow... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blacklightpy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width