It’s a long time since I did not post anything, it was a busy period for me. Now that I live the most amazing time of my life I also try to focus on learning and work as much as I can. I can tell you this is quite difficult!
I’ve been thinking about writing this post for quite some time but I did not find the time to do it and as soon as I started I’ve discovered that there is a lot to learn before doing it.
First to put this into context, as I started to learn SharePoint 2013 because there will be an upgrade of the farm I manage at work, I’ve been thinking about documenting everything. Posting this on the blog so that the same community that helps me solve my problems and further develop my skills to also benefit from my work seemed like a very good idea for me. I am very new to teaching something to other people and as I’ve discovered this is not an easy task, even when you know a product like SharePoint very well it’s still very hard to express that knowledge and to transfer it to a different person in a way that the person really understands what you want to transmit. And then there are the technical and organisational parts, people that create very good videos you see on YouTube put a lot of work in that, of course with time it gets easier but as I started it doesn’t look as easy as it looked before starting it.
Now going back to the subject, I plan to do a video training series on how to install, configure manage SharePoint 2013 and if everything goes well I’ll get into some upgrade topics as this is a very important part for me considering together with my team we will need to migrate a full SP2010 farm to SP2013 in the near future.
Please see here the video guide posted on YouTube and follow this blog post for links to the resources used in this session.
Why do I post an installation and initial farm configuration you might ask. Well there are a lot of guides on the internet, there is a lot of information, many options and to be honest at the beginning I got a little confused. Then there are small bits of information which are very good but I ended up with no great guide on how to install SP2013. I have to tell you that I am interested in a very easy way of doing it, I don’t want to spend too much time installing SharePoint.
In my case the installation is done on servers not connected to the internet. SharePoint is a great product to be used as the internal portal and many companies have their intranet not connected to the internet, most often when the intranet is a classified network.
When you install SP2013 exactly as with SP2010 there are actually two parts: download and install the prerequisites and then install the SharePoint bits. After you end the installation phase you will need to setup your farm using the “SharePoint 2013 Products Configuration Wizard” which will help you create a new farm, choose a farm passphrase, creates the configuration database and the central administration database. The problem is this wizard will create those two databases with the default name and if you store another installation of SharePoint on the same instance you will get easily confused, even more when you used the same wizard on the other SP2010 farm stored on the same SQL. So that was one requirement for me, to be able to specify the config and CA databases names. After you finish this wizard you have a SharePoint platform and the tools to manage it. It’s not really a farm because you create a farm using the second wizard proposed by Microsoft, the “Farm Configuration Wizard”. This wizard will deploy for you depending on what you select a number of service applications, all the time using the default values for the database names and configuring the service applications with a set of default settings. You are able to specify a service account to be used as the application pool account for the service applications. The next step in this wizard is to create your first web application and the first site collection. This brings also a problem because the first web application will have a content database name of WSS_Content and it is created by default, there is no way to skip it.
After spending some time online I decided I want to skip both wizards and create my own scripts to deploy the farm.
Install SharePoint Prerequisites offline and unattended.
1. Downloading the prerequisites
For this task you need to know on which platform you will install SharePoint and choose the right solution. I install SharePoint on a Server 2012 OS so I chose Craig Lussier’s script to download the prerequisites. It is the second script in his package and the name is very easy to guess. When you run the script you need to give a path where you will save your prerequisites. Move those files to your SharePoint server or more easily if you install multiple servers put the files on a network share.
2. Creating the PrerequisiteInstaller.Arguments.txt
You can download a predefined sample here (right click, save as), and do a search and replace with the path where you stored the prerequisite installer files on your network share. Make sure you leave everything on one row. My file works fine for Server 2012. If you have a different infrastructure please adapt your path for the network share and where it is necessary also change the file name. Prerequisites have a different name when you install them on different platforms.
3. Copy your SharePoint 2013 installation media to a network share and paste the PrerequisiteInstaller.Arguments.txt next to the Prerequisiteinstaller.exe. When you launch the prerequisiteinstaller.exe it will search for the arguments text file and if it’s there it will be used to install the prerequisites from the location you specified in your text file.
4. Launch the prerequisiteinstaller.exe and sit back while the prerequisites are installed.
Unattended installation of SharePoint 2013
For this part I had a few requirements: to install to a custom folder, a complete version of SharePoint 2013 and to have no interaction during the install process.
I will tell you here about what other options I found. The most used by admins seems to be AutoSPInstaller. With AutoSPInstaller you create an input file and then it automatically installs SharePoint, configures your farm and so on. Probably it’s great tool for people who do a lot of installations every day or week. My problem was that it does not allow you to select a custom location where you will install SharePoint. I was not interested in deploying service applications because I plan to treat this subject separately. There is the option to edit the scripts but it’s not on my radar as I find the unattended way of installing SharePoint 2013 too easy to complicate things.
1. In order to install SP2013 unattended you will need a config.xml file with your specific parameters.
For a very good guide which I found at the time I was writing this post please look here. For my config.xml sample please use this one. Use your serial number, configure the location of the installation go to the next step or further customize using the guide.
2. Copy the path to your config.xml file and start from a PowerShell window the installation using the following “.setup.exe /config your pathconfig.xml”
3. At the end of the process cancel the “SharePoint 2013 Products Configuration Wizard”
Deploying the Central Administration
Download the following scripts I prepared for you here. The scripts are marked in order. Supply your own values in each script following the guidelines you will see inside.
1. First script will create the Configuration database and the Central Administration database, will setup a farm passphrase and will setup the farm account. More information on the command here.
2. Second script will install the features and services available. More information about each command Initialize-SPResourceSecurity, Install-SPService, Install-SPFeature, Install-SPHelpCollection, Install-SPApplicationContent.
3. Third script will deploy the Central Administration web application.
4. There are two scripts marked with 4, you any of them to create one managed account or multiple managed accounts.
5. Script number 5 will deploy the “State Service” service application
6. Rest of the scripts are not mandatory, but you can use the one for changing the account under which the AppFabricCaching service runs.
Next I will deploy several web applications but I will not do a post on that one and I will configure the service applications one by one. I hope that at least for the most complex service applications I will do a video guide on how to install and configure.
Doing the installation using the method described here should take you half an hour, it took me 45 minutes explaining it and doing it on a virtual system.
Please feel free to submit feedback, or post your questions below.