Windowsserverdocs: Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950

Created on 12 Dec 2018  Â·  35Comments  Â·  Source: MicrosoftDocs/windowsserverdocs

Performing a
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 fails on Windows Server 2019 Datacenter edition, build 17763.1 . Both on 'Full Desktop Experience' and the 'Core' installation option.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2

Most helpful comment

gpedit.msc (Group Policy) -> Computer Configuration -> Admin. Templates -> Windows Components -> Windows Update -> Specify intranet Microsoft update service location -> Disabled
seemed to help me with Win2019.

All 35 comments

experiencing the same issue here ( core and gui )
weird thing, after installing: KB4470788 and KB4470502 it does work for me.

thanks for the suggestion! KB4470788 and KB4470502 did however not yet solve the issue. I had to install KB4471332 as well and this solved it for me. This implies a shift from build 17763.1 to build 17763.194 (december 2018).

Looks like these updates have all been superseded. Installing KB4480116 ( latest cumulative update ) resolved this issue for me.

So it looks like, for any new installs, just make sure you have the Latest cumulative update.

Having similiar issue.

Its an offline machine. Windows 10 1809 offline os build 17763.404

Add-WindowsCapability : Falha em Add-WindowsCapability. Código do erro = 0x8024402c
No linha:1 caractere:1

  • Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
  • ~~~~~~~~~~~~~

    • CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException

    • FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

Same issue here, on Server 2019 vNext (Insider Build 18356). I already installed OpenSSH client via Powerhsell, worked ok.. But the OpenSSH server just fails with 0x800f0950 / COMException - and there is no update available for the INsider Server Build?

gpedit.msc (Group Policy) -> Computer Configuration -> Admin. Templates -> Windows Components -> Windows Update -> Specify intranet Microsoft update service location -> Disabled
seemed to help me with Win2019.

gpedit.msc (Group Policy) -> Computer Configuration -> Admin. Templates -> Windows Components -> Windows Update -> Specify intranet Microsoft update service location -> Disabled
seemed to help me with Win2019.

worked for me as well.. Thanks for pointing this out.

Well ,I solved this problem just with settings->update and security->Transfer optimization->allow download from other computer open ,select the second one ,download from other computer and internet

gpedit.msc (Group Policy) -> Computer Configuration -> Admin. Templates -> Windows Components -> Windows Update -> Specify intranet Microsoft update service location -> Disabled
seemed to help me with Win2019.

It resolved my issue with adding SSHClient! Thanks for the tip!

gpedit.msc (Group Policy) -> Computer Configuration -> Admin. Templates -> Windows Components -> Windows Update -> Specify intranet Microsoft update service location -> Disabled
seemed to help me with Win2019.

It resolved my issue with adding SSHClient! Thanks for the tip!

Same issue on Azure Cloud with this SKU MicrosoftWindowsServer:WindowsServer:2019-Datacenter-smalldisk:2019.0.20190410.

Is there a way to automate this change ? I'm using packer to create base images, that's why.

Thanks!

I've encoutered this issue today after setting a deployment in SCCM for this.
Get-WindowsCapability -Name "RSAT*" -Online | Add-WindowsCapability –Online -Verbose

I have the group policy setting on but I still get error code. 0x800f0950
I'm trying KB4495667 to see if it resolves it.

I've encoutered this issue today after setting a deployment in SCCM for this.
Get-WindowsCapability -Name "RSAT*" -Online | Add-WindowsCapability –Online -Verbose

I have the group policy setting on but I still get error code. 0x800f0950
I'm trying KB4495667 to see if it resolves it.

After Installing KB4495667 which is the latest CU for 1809 it is resolved. As this week is patch Tuesday/Wednesday (depending on your location) the fi should be rolled into the A week update.

I'm using this command.
Get-WindowsCapability -Online -Name "RSAT" | Add-WindowsCapability -Online -Verbose

Getting this on a Server Insider Preview VM - 10.0.18356.1

Having similiar issue.

Its an offline machine. Windows 10 1809 offline os build 17763.404

Add-WindowsCapability : Falha em Add-WindowsCapability. Código do erro = 0x8024402c
No linha:1 caractere:1

  • Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
  • <ul> <li>CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException</li> <li>FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand<br />

I have exactly the same problem

$currentWU = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" | select -ExpandProperty UseWUServer Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value 0 Restart-Service wuauserv Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value $currentWU Restart-Service wuauserv

Source: https://community.spiceworks.com/topic/2166885-rsat-and-wsus-locations

This issue appears in my setup:

Edition: Windows Server 2019 Standard
Version: 1809
Build: 17763.740

I've tried @andrm's methond and it's still not working.

I've encountered Error code 0x800f0950 and 0x800f0954 each on one of my server machines with the same setup.
Error #1:

Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950
At line:1 char:1
+ Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

Same error message:

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0                  Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0954
At line:1 char:1
+ Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

Windows 10 ver 1903, insider build 18995.1.

This is bullshit microsoft. Getting tired of your crap. you keep releasing patches that BREAK things - STOP IT.

Try this, guys

KB4522015 also breaks enabling RSAT tools installation. Uninstalling KB4522015 allows RSAT tools to install again.

Ultimately, this worked for our company:

https://dailysysadmin.com/KB/Article/3244/add-windowscapability-failed-error-code-0x800f0954/

Any yaknow, we have 2 permanent onsite Microsoft folks, but just try telling them something is broken or that their devops is out of control and they just turn their noses in the air. Microsoft has been getting high on its own brand again perhaps. They should take a look at even just the last 6 months of critical issues they themselves have created. SLOW. DOWN.

I'm encountering the same issue. None of the workarounds above work for me 😔

Windows 10 Education N
Version 2004
OS Build 19037.1

PS C:\WINDOWS\system32> Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950
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

I found out the cause, at least in my case--my workplace sysadmin did not have OptionalFeatures covered by the domain group policy, so that was blocking the download as well as just generally getting in the way of the windows update processes.

Windows 10 enterprise
Build 19035.1
Can't install Openssh server neither from gui/dism/posh got 0x800f0950
dism log: https://paste.ubuntu.com/p/PmKVD4hBk7

I'm having the same problem, during a unattended installation using the 17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso (internet is available).

This workaround seems to be stable for me. I'm running the following powershell script using the FirstLogonCommands during the unattended installation, eventually this succeeds, but it may fail a number of times with the 0x800f0950 error. Just retry until it is installed.

do {
  Start-Sleep -Seconds 5
  Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 -ErrorAction Ignore | Out-Null
} 
until ((Get-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0).State -eq 'Installed')

Well ,I solved this problem just with settings->update and security->Transfer optimization->allow download from other computer open ,select the second one ,download from other computer and internet

Thanks a ton. It worked.

Has anyone tried resetting their WUServer registry key? This resolved the error for me.

  • Open regedit
  • Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
  • Set UseWUServer = 0x00000000 (0)
  • Restart

I found out the cause, at least in my case--my workplace sysadmin did not have OptionalFeatures covered by the domain group policy, so that was blocking the download as well as just generally getting in the way of the windows update processes.

Click Computer Configuration, click Administrative Templates, click System, and then double-click the Specify settings for optional component installation and component repair setting

That works for me

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Josh,

The registry changed worked for me
Open regedit
Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
Set UseWUServer = 0x00000000 (0)
Restart my server

PS C:\util> Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Path :
Online : True
RestartNeeded : False

My question is should I revert back the registry setting? I use WSUS to update my servers?

Thank you

Tom

$currentWU = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" | select -ExpandProperty UseWUServer Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value 0 Restart-Service wuauserv Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value $currentWU Restart-Service wuauserv

Source: https://community.spiceworks.com/topic/2166885-rsat-and-wsus-locations

Thanks, it worked !!!!

Ultimately, this worked for our company:
https://dailysysadmin.com/KB/Article/3244/add-windowscapability-failed-error-code-0x800f0954/

I found this page while searching for the 0x800f0954 error code (note the "4" at the end of the error code) and the solution described in the link above worked for me.

i have installed openssh server (sshd) directly from github:

https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH

Windows Server 2019 Core Semi-Annual Insider Preview Build 20226 [Windows_InsiderPreview_Server_en-us_20226.iso]

Microsoft Windows [Version 10.0.20226.1000]

C:\Users\Administrator>powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\Administrator> Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0
Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950
At line:1 char:1
+ Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

For Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU there are two keys, one AUOptions with value 3, and the other UserWUServer set to 0 and the command still fails as above

Overall I cannot accomplish or find a way to do what I'm trying to do with this system and gave up

https://www.catalog.update.microsoft.com/Search.aspx?q=2020-09%202019 evidently theres updates you need to install for this ?

I am seeing this error too on all the latest insiders server build.

Fooling around with WSUS did not resolve the problem and this is a late insiders build so there is no older CU to deal with.;

Is there any solution to this?

I am seeing this error too on all the latest insiders server build.

Fooling around with WSUS did not resolve the problem and this is a late insiders build so there is no older CU to deal with.;

Is there any solution to this?

I'm also getting this on Windows 10 Enterprise Insider Preview Build 20150.rs_prerelease.200612-1734

Tried the workarounds (none worked):

  • group policy
  • registry (both HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU and HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate)
  • disabling delivery optimization in settings
  • tried to install all RSAT capabilities (same error code 0x800f0950)
  • tried to restart wuauserv

Powershell output

Add-WindowsCapability : Falha em Add-WindowsCapability. Código do erro = 0x800f0950                                     No linha:1 caractere:1
+ Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

Windows Event Log Report

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Windows Error Reporting" /> 
  <EventID Qualifiers="0">1001</EventID> 
  <Version>0</Version> 
  <Level>4</Level> 
  <Task>0</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2020-11-12T01:44:26.9471416Z" /> 
  <EventRecordID>28689</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="0" ThreadID="0" /> 
  <Channel>Application</Channel> 
  <Computer>NOALVO-CTO</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>1869761896635289786</Data> 
  <Data>5</Data> 
  <Data>CbsPackageServicingFailure2</Data> 
  <Data>Não disponível</Data> 
  <Data>0</Data> 
  <Data>10.0.20150.1000</Data> 
  <Data>OpenSSH-Server-Package</Data> 
  <Data>10.0.20150.1000</Data> 
  <Data>amd64</Data> 
  <Data>unknown</Data> 
  <Data>800f0950</Data> 
  <Data>CBS Other</Data> 
  <Data>Absent</Data> 
  <Data>Absent</Data> 
  <Data>DISM Package Manager Provider</Data> 
  <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER1FA.tmp.WERInternalMetadata.xml</Data> 
  <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\Critical_10.0.20150.1000_e7a717011ce11c59fb1426e6964f30604654ab_00000000_b9b98b00-3723-468d-ac7f-f442daa7221f</Data> 
  <Data /> 
  <Data>0</Data> 
  <Data>b9b98b00-3723-468d-ac7f-f442daa7221f</Data> 
  <Data>2147487744</Data> 
  <Data>f7601e678ae448da69f2ba89df81d0ba</Data> 
  <Data>0</Data> 
  </EventData>
  </Event>

Somehow it was related to Insider Preview update...

Before the error, I installed a Dev release manually but I stayed in the Beta release channel. Today I changed it to Dev channel and updated to Build 20257.fe_release.201106-1554 and it solved the problem.

Windows Update seems to be confused if you install a Dev release manually and stays at Beta release channel.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aurelien-git picture aurelien-git  Â·  3Comments

chall3ng3r picture chall3ng3r  Â·  4Comments

janis-veinbergs picture janis-veinbergs  Â·  5Comments

Garthmj picture Garthmj  Â·  3Comments

yoshihirok picture yoshihirok  Â·  4Comments