Title: `Get-WindowsOptionalFeature -Online` fails on PowerShell from MSIX installation - [Get-WindowsOptionalFeature: Class not registered] · Issue #13866 · PowerShell/PowerShell · GitHub
Open Graph Title: `Get-WindowsOptionalFeature -Online` fails on PowerShell from MSIX installation - [Get-WindowsOptionalFeature: Class not registered] · Issue #13866 · PowerShell/PowerShell
X Title: `Get-WindowsOptionalFeature -Online` fails on PowerShell from MSIX installation - [Get-WindowsOptionalFeature: Class not registered] · Issue #13866 · PowerShell/PowerShell
Description: Steps to reproduce Get-WindowsOptionalFeature -Online >Get-WindowsOptionalFeature: Class not registered get-error Exception : Type : System.Runtime.InteropServices.COMException ErrorCode : -2147221164 TargetSite : Name : ThrowTerminating...
Open Graph Description: Steps to reproduce Get-WindowsOptionalFeature -Online >Get-WindowsOptionalFeature: Class not registered get-error Exception : Type : System.Runtime.InteropServices.COMException ErrorCode : -2147221...
X Description: Steps to reproduce Get-WindowsOptionalFeature -Online >Get-WindowsOptionalFeature: Class not registered get-error Exception : Type : System.Runtime.InteropServices.COMException ErrorCode : -2147...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/13866
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Get-WindowsOptionalFeature -Online` fails on PowerShell from MSIX installation - [Get-WindowsOptionalFeature: Class not registered]","articleBody":"\r\n## Steps to reproduce\r\n\r\n```powershell\r\n\r\nGet-WindowsOptionalFeature -Online\r\n\r\n>Get-WindowsOptionalFeature: Class not registered\r\n\r\nget-error\r\n\r\nException :\r\n Type : System.Runtime.InteropServices.COMException\r\n ErrorCode : -2147221164\r\n TargetSite :\r\n Name : ThrowTerminatingError\r\n DeclaringType : System.Management.Automation.MshCommandRuntime, System.Management.Automation, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\n StackTrace :\r\n at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)\r\n Message : Class not registered\r\n\r\n Source : System.Management.Automation\r\n HResult : -2147221164\r\nCategoryInfo : NotSpecified: (:) [Get-WindowsOptionalFeature], COMException\r\nFullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsOptionalFeatureCommand\r\nInvocationInfo :\r\n MyCommand : Get-WindowsOptionalFeature\r\n ScriptLineNumber : 1\r\n OffsetInLine : 1\r\n HistoryId : 1\r\n Line : Get-WindowsOptionalFeature -Online\r\n PositionMessage : At line:1 char:1\r\n + Get-WindowsOptionalFeature -Online\r\n + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n InvocationName : Get-WindowsOptionalFeature\r\n CommandOrigin : Internal\r\nScriptStackTrace : at \u003cScriptBlock>, \u003cNo file>: line 1\r\n```\r\n\r\n## Expected behavior\r\n\r\n```powershell\r\n\r\n$PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.0.3\r\nPSEdition Core\r\n\r\nGet-WindowsOptionalFeature -Online\r\n\r\nFeatureName : Printing-PrintToPDFServices-Features\r\nState : Enabled\r\n\r\nFeatureName : Windows-Defender-Default-Definitions\r\nState : Disabled\r\n\r\nFeatureName : Printing-XPSServices-Features\r\nState : Enabled\r\n\r\n...\r\n```\r\n\r\n## Actual behavior\r\n\r\n```\r\nError: Get-WindowsOptionalFeature: Class not registered\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n$PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.1.0-rc.2\r\nPSEdition Core\r\nGitCommitId 7.1.0-rc.2\r\nOS Microsoft Windows 10.0.20211\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","author":{"url":"https://github.com/brwilkinson","@type":"Person","name":"brwilkinson"},"datePublished":"2020-10-25T00:57:21Z","url":"https://github.com/PowerShell/PowerShell/issues/13866"}
| 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:d744428a-f6a5-0109-0315-d0a6f72fa81b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECBA:2F635D:1DCD9E:27CEF1:6AFD12B3 |
| html-safe-nonce | 2ed12210398263bd5272154ae4c589e49c4d19861c993924fd4a51d0420f4064 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0JBOjJGNjM1RDoxRENEOUU6MjdDRUYxOjZBRkQxMkIzIiwidmlzaXRvcl9pZCI6Ijc0Mzk3MzMxMjYzMzY0MTg0ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e2605caf501c3206d052186fc782553d6b8cf265c9769aa36728ff867eddb5f6 |
| hovercard-subject-tag | issue:728911335 |
| 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/13866/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4fb52f3bb4dacc438067f561c380c6630e38298ebbf19897f57dd84a9c50b6b9/PowerShell/PowerShell/issues/13866 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4fb52f3bb4dacc438067f561c380c6630e38298ebbf19897f57dd84a9c50b6b9/PowerShell/PowerShell/issues/13866 |
| og:image:alt | Steps to reproduce Get-WindowsOptionalFeature -Online >Get-WindowsOptionalFeature: Class not registered get-error Exception : Type : System.Runtime.InteropServices.COMException ErrorCode : -2147221... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brwilkinson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width