question

JustinTVaughn-7657 avatar image
0 Votes"
JustinTVaughn-7657 asked IanXue-MSFT answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.