Installing OpenSSH Server feature on Windows 2022 Insider preview

Gary Rowland 6 Reputation points
2021-03-16T11:33:26.477+00:00

When I try to Install the OpenSHH Server Feature on Windows 2022 Insider Preview it fails with the message Check your windows insider program settings also if I use Powershell I get the error PS C:\Users\Administrator> Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950 At line:1 char:2 + Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand PS C:\Users\Administrator> Edition Windows Server 2022 Datacenter Version 21H2 Installed on ‎15/‎03/‎2021 OS build 20308.1

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,587 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Jenny Feng 14,096 Reputation points
    2021-03-17T07:01:36.23+00:00

    @Gary Rowland
    Hi,
    The OpenSSH client and server are in Beta, there are still many limitations and issues.
    For your reference:
    https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration
    For OpenSSH related issue, it is recommended to post in OpenSSH GitHub repo for more help:
    https://github.com/PowerShell/openssh-portable
    The master OpenSSH open source project is managed by developers at the OpenBSD Project. The Microsoft fork of this project is in GitHub.
    Thank you for your understanding.

    Hope above information can help you.

    If the reply is useful for you, please accept as answer. It will be helpful to other members who have same questions posting appropriately.


  2. Sudeep Batra 1 Reputation point
    2021-10-12T03:00:12.813+00:00

    I am also getting similar error
    Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
    Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x8024002e
    At line:1 char:1

    • Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException
    • FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

    So how is the answer helpful at all ?
    That doesnt solve my problem to install openssh on my windows machine.