安装与卸载参考:https://docs.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse
[C:\] system32 >Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Add-WindowsCapability : Add-WindowsCapability 失败。错误代码 = 0x80240438 所在位置 行:1 字符: 1 + Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand
修改组策略 禁用 Specify intranet Microsoft update service location 重新安装
参考:
1 https://github.com/MicrosoftDocs/windowsserverdocs/issues/2074