title: Enable feature TCP Activation on Windows server 2016 fails due to parent issue
body: <p>I try to enable feature <em>TCP Activation</em> on a Windows Server 2016 but it fails with</p>
  <pre><code>&quot;The request to add or remove features on the specified server failed.
  Installation of one or more role, role services, or features failed. 
  One or several parent features are disabled so current feature can not be enabled. 
  Error: 0xc004000d&quot;
  </code></pre>
  <p>I have tracked down the parent features and they are all installed.<br />
  I can find nothing relevant in the event log.<br />
  The machine is freshly rebooted.</p>
  <p>Q: What is failing<br />
  or how do I track it down?</p>
  <hr />
  <h1>TL;DR</h1>
  <p>I tracked down the <em>TCP Activation</em> feature with Powershell like so:</p>
  <pre><code>Get-WindowsFeature | where { $_.Name -eq 'NET-WCF-TCP-Activation45' } | select *
  </code></pre>
  <p>which gives me (shortened)</p>
  <pre><code>...
  Installed                 : False
  InstallState              : Available
  DependsOn                 : {NET-Framework-45-Core, NET-WCF-TCP-PortSharing45, NET-Framework-45-ASPNET, WAS-Process-Model...}
  ...
  </code></pre>
  <p>The feature is not installed. That is what is expected.<br />
  Then I find the clue <code>DependsOn</code> which I <em>guess</em> is the same as <code>parent feature</code> in the error message.<br />
  So I expand it with</p>
  <pre><code>Get-WindowsFeature | where { $_.Name -eq 'NET-WCF-TCP-Activation45' } | select -ExpandProperty DependsOn
  </code></pre>
  <p>which gets me to</p>
  <pre><code>NET-Framework-45-Core
  NET-WCF-TCP-PortSharing45
  NET-Framework-45-ASPNET
  WAS-Process-Model
  WAS-Config-APIs
  </code></pre>
  <p>and iterating through them gives me</p>
  <pre><code>Installed                 : True
  InstallState              : Installed
  </code></pre>
  <p>for each and every one.</p>
  <p>I try to enable the feature through Powershell in the hope of finding more information.</p>
  <pre><code>PS C:\...\&gt; Install-WindowsFeature NET-WCF-TCP-Activation45 -Verbose
  VERBOSE: Installation started... 
  VERBOSE: Continue with installation?
  VERBOSE: Prerequisite processing started...
  VERBOSE: Prerequisite processing succeeded.
  Install-WindowsFeature : The request to add or remove features on the specified server failed.
  Installation of one or more roles, role services, or features failed.
  One or several parent features are disabled so current feature can not be enabled. Error: 0xc004000d
  At line:1 char:1
  + Install-WindowsFeature NET-WCF-TCP-Activation45
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
      + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand
  
  Success Restart Needed Exit Code      Feature Result                               
  ------- -------------- ---------      --------------                               
  False   No             Failed         {}     
  </code></pre>
  <p>As written before the fold I can find nothing of relevance in the event log.<br />
  Are there other logs to look at?<br />
  The machine is freshly rebooted and fairly new, I have only installed SqlServer2017 on it.
  Where do I continue?</p>