Skip to content

Instantly share code, notes, and snippets.

@krisdb2009
Created June 25, 2021 18:52
Show Gist options
  • Save krisdb2009/c35693fcf47935056799d145a656b421 to your computer and use it in GitHub Desktop.
Save krisdb2009/c35693fcf47935056799d145a656b421 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<handlers>
<add name="PowerShell" path="*.ps1" verb="*" modules="CgiModule" scriptProcessor="C:\Windows\System32\cmd.exe /Q /V:ON /C powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File !PATH_TRANSLATED!" resourceType="File" requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment