title: Error with windows 10 PowerShell Get-WindowsCapability and Add-WindowsCapability commands
body: <p>I am running Windows 10 Pro 1809 <br>
  I wish to install active directory on the computer; however, when I attempt to use powershell command:  <br></p>
  
  <pre><code>Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950
  At line:1 char:45
  + ... WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
  +                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
      + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand
  </code></pre>
  
  <p>It is also worth noting the command:</p>
  
  <pre><code>Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property DisplayName, State
  </code></pre>
  
  <p>Displays the following:</p>
  
  <pre><code>DisplayName                                                                          State
  -----------                                                                          -----
  RSAT: Active Directory Domain Services and Lightweight Directory Services Tools NotPresent
  RSAT: BitLocker Drive Encryption Administration Utilities                       NotPresent
  RSAT: Active Directory Certificate Services Tools                               NotPresent
  RSAT: DHCP Server Tools                                                         NotPresent
  RSAT: DNS Server Tools                                                          NotPresent
  RSAT: Failover Clustering Tools                                                 NotPresent
  RSAT: File Services Tools                                                       NotPresent
  RSAT: Group Policy Management Tools                                             NotPresent
  RSAT: IP Address Management (IPAM) Client                                       NotPresent
  RSAT: Data Center Bridging LLDP Tools                                           NotPresent
  RSAT: Network Controller Management Tools                                       NotPresent
  RSAT: Network Load Balancing Tools                                              NotPresent
  RSAT: Remote Access Management Tools                                            NotPresent
  RSAT: Remote Desktop Services Tools                                             NotPresent
  RSAT: Server Manager                                                            NotPresent
  RSAT: Shielded VM Tools                                                         NotPresent
  RSAT: Storage Migration Service Management Tools                                NotPresent
  RSAT: Storage Replica Module for Windows PowerShell                             NotPresent
  RSAT: System Insights Module for Windows PowerShell                             NotPresent
  RSAT: Volume Activation Tools                                                   NotPresent
  RSAT: Windows Server Update Services Tools                                      NotPresent
  </code></pre>