Using PowerShell as a CGI binary in IIS Express Using PowerShell as a CGI binary in IIS Express powershell powershell

Using PowerShell as a CGI binary in IIS Express


If somebody is intrested, I had the same problem and was able to solve it with the following config on IIS 8.5.

<?xml version="1.0" encoding="UTF-8"?><configuration>    <system.webServer>        <handlers>            <add name="PowerShell CGI" path="*.ps1" verb="GET,POST,HEAD" modules="CgiModule" scriptProcessor="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NonInteractive -File "%s" %s" resourceType="File" requireAccess="Script" />        </handlers>    </system.webServer></configuration>