I have got a lot of good feedback on the WebApplicationBuilder script that I did during the summer. I have finally got some time to update it to make it bit better, but be patient, there are still a lot of room improvements.

This is what is done.

You now execute the script by using the following:

SP-WebAppBuilder.ps1 -configpath [path to configfile.xml] -Webapplication [yes/no] -SiteCollection [yes/no]

The configpath is same as before. It’s created from an Excel file found in the Zip-file. More information on how to use it is found here:

What is new is that I have added two switches. -WebApplication and -SiteCollection. This gives the possibility to choose if you only want to create the Web Applications, only the Site Collections or both. This is especially useful in scenarios where the Site templates are added in a soluion. In those Cases you need to first add the Web Application, Add the solution with the Template inside and then create the SiteCollection.

What I have also done is to add a -help switch to be able to see the syntax and reference.

You find the updated code here or in the download section. More about the script itself from  can be found in my older post: Web Application Builder.

In next updated version I’m thinking of adding logging and better error handling, or should I say, add error handling. Hey, don’t muck me, I’m an Admin, not a Developer :)



  1. It‘s quiet in here! Why not leave a response?




Subscribe without commenting