I've created a script for most of the functions I need when creating a Site for my IIS, however, there is still one thing missing.
Namely, I can't seem to find the commands for setting script privileges on a Site.
I want all script rights but no execution rights if I've understood it correctly.
So, how do you set those privileges through powershell?
Edit: The answer I was looking for was:
set-webconfigurationproperty -filter /system.webserver/handlers -name accesspolicy -value $flagsPermissions -PSPath $PS_PATH -Location $siteDescription
It works nicely.