Provisioning Central Admin Config DB, Content DB, and then SharePoint Service Apps for SharePoint 2013 Foundation

Have you ever had a blast from the past and looked for a script on configuring SharePoint 2013 Foundation?


Before you run the scripts below, you need to install the binaries.  Todd Klindt has an awesome blog post where you can get the downloads ->


Once, you’ve downloaded the binaries, installed them and patched to whichever CU, you can use these scripts


Create Central admin config db and content db




After that script finishes, add your managed accounts, using New-SPManagedAccount for the account used in creating the service apps

Create Foundation Service Apps



Then after you’ve finished with those two scripts, you can append _admin/adminconfigintro.aspx?scenarioid=adminconfig&welcomestringid=farmconfigurationwizard_welcome to your central administration URL to enter the wizard to create the search service application.  It’s not supported to create a search service application for foundation with powershell.


Happy SharePointing!