首页 > 解决方案 > 安装-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

我似乎无法在网上找到任何解决方案。

问候瑞恩

标签: powershellwindows-server-2019

解决方案


推荐阅读