Fix failure on Script Rerun

Aug 9, 2011 at 5:33 PM

If you run the script multiple times on a already provisioned machine in order to fix some configuration or correct an error the script fails because the Site Collection already exist. Should behave the same like the web application detect that it is already provisioned and move on to next step so you can use the same configuration file again and again. Right now you need to change the config file and remove the already provision web site from the configuration.

Aug 9, 2011 at 5:44 PM

Taking out the offending Web Application or Site Collection portions of the configuration the script does not longer work. These scripts in the past could be run multiple times on the same machine that is not longer the case.

Coordinator
Aug 10, 2011 at 3:31 PM

Nothing should have changed here - the script should detect an existing web app and/or site collection and not try to re-create it. Check your input file, and also maybe what account you're running under on subsequent runs (maybe it doesn't have permission to get the site collection?).

I regularly re-run the script on existing servers/farms with pre-existing site collections and it still simply skips over them.

Brian