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

Justin T Vaughn 31 Reputation points
2022-04-12T14:05:57.377+00:00

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~~~0.0.1.0 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,635 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2022-04-19T07:40:21.493+00:00

    Hi,

    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~~~~0.0.1.0  
    DISM.exe /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0  
    

    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.