We're seeing a lot of this code in our automation scripts:
This works. Kind of. It will subtly fail if any user besides
I'd like to create a function, Grant-HttpUrlPermission, that uses the HTTP Server API to handle and abstract this stuff out, but only if it doesn't already exist.
So, is there a PowerShell equivalent to the
Haven't tested it myself, but searching for a .NET wrapper around the HTTP Server API turned this up: http://www.codeproject.com/Articles/437733/Demystify-http-sys-with-HttpSysManager
It would be much easier to start with a working .NET library and just wrap that in PowerShell, instead of having to go all the way down the Win32 rabbit hole yourself.
You must be logged in to reply to this topic.