title: Appcmd.exe isapiCgiRestriction Error Cannot find requested collection element
body: <p>I am trying to do an IIs config on a windows 2012 server using the appcmd.exe and trying to run :</p>
  
  <blockquote>
    <p>C:\Windows\System32\inetsrv\appcmd.exe set config
    /section:isapiCgiRestriction
    /[path='^%windir^%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll'].allowed:true</p>
  </blockquote>
  
  <p>But it gives me an error :</p>
  
  <blockquote>
    <p>ERROR ( message:Cannot find requested collection element. )</p>
  </blockquote>
  
  <p>I have tried <a href="http://forums.iis.net/t/1181607.aspx" rel="nofollow noreferrer">http://forums.iis.net/t/1181607.aspx</a> where the user suggests placing '^'
  also <code>c:\windows\system32\inetsrv\appcmd set config -section:isapiCgiRestriction “/[path=’C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll’].allowed:True”</code></p>
  
  <p>but i keep getting the same error. Any suggestions.</p>