unable to install openssh

Glenn Maxwell 7,581 Reputation points
2022-04-20T19:27:15.287+00:00

Hi Experts

I am facing issue installing openssh on windows server 2019. i have followed the below article but no luck. i have uninstalled and tried to install again but same issue.
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

PS C:\windows\system32> Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

Name : OpenSSH.Client~~~~0.0.1.0
State : Staged
Name : OpenSSH.Server~~~~0.0.1.0
State : Staged

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
2,671 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
9,547 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,906 questions
{count} votes

Accepted answer
  1. Rich Matheisen 39,266 Reputation points
    2022-04-23T15:01:50.44+00:00

    This seems to have been a common problem but I don't know if still is.

    Is the server running the latest updates?

    Have you tried adding the -LimitAccess switch to the Add-WindowsCapability cmdlet?

    Do you have this registry value set to something other than zero (0)?

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

    I think this may do the same as adding the -LimitAccess switch: add-windowscapability-failed-error-code-0x800f0954

    Have you checked the DISM log (C:\Windows\Logs\DISM\dism.log) after the Add-WindowsCapability fails to add the capability?

    Ultimately, I don't think this is a PowerShell problem, though.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Glenn Maxwell 7,581 Reputation points
    2022-04-23T14:05:34.82+00:00

    yes rebooted


  2. Glenn Maxwell 7,581 Reputation points
    2022-04-25T23:16:55.157+00:00

    server is having latest update. below is reg setting

    196392-reg.jpg

    0 comments No comments

  3. Rich Matheisen 39,266 Reputation points
    2022-04-26T02:06:23.177+00:00

    Is that "UseWUServer" value set by a GPO? One of the suggestions from people that have had this problem is set the value to zero (0). You may have a problem doing that if a GPO keeps setting it back, though. If it's set by a LOCAL policy you should be able to change it.

    0 comments No comments