title: "Error 87 the all option is not recognised in this context" using DISM to enable IIS
body: <p>I am trying to use a bat to enable IIS to run an asp.net application on a windows 7 (professional) 64bit machine and seem to be constantly encountering this issue. I am running the bat file as an administrator. The entry in my bat file I am using is as follows:</p>
  
  <pre><code>%systemroot%\sysnative\dism /online /enable-feature /all /featurename:IIS-ASPNET45
  </code></pre>
  
  <p>According to the documentation I have read the all switch should enable all parent features needed to needed to run ASP.net 4.5. I've also tried using just <code>IIS-ASPNET</code> and <code>IIS-ASPNET40</code> all received the same error.</p>
  
  <pre><code>Error 87 the all option is not recognised in this context
  </code></pre>
  
  <p>I originally tried to do each feature needed to run my application individually but encountered similar issues.</p>