Creates an IIS website and application pool

Creates a Website and Application pool in IIS with preconfigured values, useful for scripting the deployment of a web application in IIS.

You will need to 'Run as administrator' on your shell as this uses the WebAdministration module which requires elevated privileges to access IIS config data.

As this sets a custom app pool identity - you may need to enable Kernel Mode Authentication in IIS.