Download powershell (.ps1) file via ASP.NET

Viewed 3303

I've got a .ps1 file that I would like to link readers to. Unfortunately, navigating to that URL only results in a 404. If memory serves, this is being "blocked" just like .config files, but there's a way to change that configuration in web.config ... but I can't seem to find the correct thing via search.

TL;DR, how can I expose a .ps1 powershell script so that it's accessible (though not executable, obviously) via HTTP.

2 Answers
Related