I've just created a new DWORD to be able to install the RSAT Tools without the Add-WindowsCapability failed. Error code = 0x800f0954 :
> New-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing -Name RepairContentServerSource -Type dword -Value 2
RepairContentServerSource : 2
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
PSChildName : Servicing
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
The ls HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing command shows nothing :
> ls HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing
>
but gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing shows both the CountryCode and my newly created itemproperty RepairContentServerSource :
> gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing
CountryCode : FR
RepairContentServerSource : 2
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
PSChildName : Servicing
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
>
However ls HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies shows everything including RepairContentServerSource :
> (ls HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies | Out-String -Stream | sls RepairContentServerSource).ToString()
RepairContentServerSource : 2
>
Is this normal ?