Install-WindowsFeature returning Error: 0x80040150

0

I am trying to install the Web-WebSocket feature using powershell but I am getting the following error

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

I cannot seem to find any solutions online.

Regards Ryan

powershell
windows-server-2019
asked on Stack Overflow Apr 12, 2021 by ryanalbrecht

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0