Installing openssh client and server optional feature fails on Windows Server 2019 1809

Justin T Vaughn 21 Reputation points

Hello Experts, When I try to install the SSH Server and Client optional features in Windows Server 2019 it fails. They do not install. In the settings -> Manage Optional Features menu, it looks like they start but never complete and then show up back in the list of available features. This is only happening on one server. We have tried to reboot, and it did not fix the issue. SFC /scannow did not help, neither did the dism /cleanup-image /scanhealth command. Also tried installing using powershell with no luck. The powershell command add-windowsCapability -online -name OpenSSH.Server~~~ appears to finish but then when we run get-WindowsCapability -online | where-object name -like 'OpenSSH*', the resultant State is "Not Present" for both client and server. Any ideas what may be wrong?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,431 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 32,236 Reputation points Microsoft Vendor


    Please see if the features can be installed using DISM /Add-Capability. Open PowerShell or CMD as administrator and run the following commands

    DISM.exe /Online /Add-Capability /CapabilityName:OpenSSH.Client~~~~  
    DISM.exe /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~  

    Best Regards,
    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.