I'm trying to figure out how to set the IIS Custom Error for the error 401 using Powershell so I've tried this without success.
Set-WebConfigurationProperty -Filter "/system.webServer/httpErrors/error[@statusCode='401']" -Location IIS:\Sites\MySite -Name path -Value "~/Content/CustomErrors/401.html"
I want to achieve this configuration result.
Thanks in advance.
