Prevent Web App and MySite creation

Jul 6, 2011 at 9:40 PM

What's the best way to prevent the script from creating the "Portal Home" Web App?

Along the same lines, how can we prevent creation of MySite Host and site collection?

Can I just create a custom function that does nothing and name is the same as the functions that install these two items? "Function CreateWebApp" with just a Write-Host "Skipping..."

Jul 8, 2011 at 10:57 PM

bump :)

Jul 11, 2011 at 3:43 PM

If I read the function CreateWebApplications in AutoSPInstallerFunctions.ps1 correctly, you should be able to not create any web applications by just delete the whole Configuration > WebApplications section in your XML file.

Jul 12, 2011 at 12:31 PM

if you add !-- at the beginning of the web apps and -- at the end of web apps, it will complain with errors but it works.  I have it running on my servers.


Jul 12, 2011 at 6:59 PM

Correct, either commenting or deleting the section will cause it not to process any web apps. @mjksgea, the correct syntax is actually <!-- --> to comment out the section.