powershell - 安装-WindowsFeature 返回错误:0x80040150
问题描述
我正在尝试使用 powershell 安装 Web-WebSocket 功能,但出现以下错误
PS C:\Windows\system32> Install-WindowsFeature -Name Web-WebSockets
Install-WindowsFeature : An unexpected error has occurred. Could not read key from registry Error: 0x80040150
At line:1 char:1
+ Install-WindowsFeature -Name Web-WebSockets
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
+ FullyQualifiedErrorId : RegistryKey_OpenSubKey_Failed,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand
我似乎无法在网上找到任何解决方案。
问候瑞恩
解决方案
推荐阅读
- docker - 使用 Terraform 设置 Docker 容器和网络
- javascript - 带有 vuejs 的“ts 1109”
- python - 如何根据平均值、中位数、第 1 和第 9 个十分位值生成数据集?
- java - Android Webview 不会从按钮侦听器加载 Url
- android - 如何在android studio中找到我的密钥文件路径
- postgresql - 是否可以从 PL/PGSQL 函数内部监控 PostgreSQL 服务器的性能?
- python - 基本函数中一个简单的python代码中的错误,它为接收到的数字提供动力
- sql - 关于为市场目录服务设计 SQL 数据库的建议
- c - 访问 typedef 也在外部定义的外部数组
- python-3.x - Fusepy“nothreads”参数解释