In deploying a new version of our ASP.NET application, we need to set the authentication method for a particular page to be "Integrated only." We can do this from the IIS managment console, but would like to write a script (batch or powershell, doesn't matter) that will make the change to ensure that everything goes smoothly in the deployment.
The rest of the pages in the application will allow different authentication methods, but this particular page will only allow integrated.
In the same deployment, we also need to change the location of the custom error pages for all 401 errors, preferably also from the command line.