Automate SCCM 2012 SP1 Primary Site Server Roles and Features Prerequisites

In order to install SCCM 2012 SP1 onto your Primary Site Server, you’ll need to pre-configure your server with some very specific settings.  First I’ll list the pre-requisite items that are required to be installed prior to installing SCCM onto your Primary Site Server.  For those who just want to quickly deploy these pre-requisite components, I’ll automate these actions into a PowerShell script which you can use.

If you search around, you’ll find the SCCM 2012 SP1 pre-requisites here:

http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigSiteSystemReq

In my example, I’ll be installing SCCM 2012 SP1 to a Windows 2012 server.  I’ll be installing SCCM onto a new Primary Site System server with the following SCCM roles:

  • Primary Site Server (Site System)
  • Management Point
  • Distribution Point
  • Fallback Status Point
  • PXE Service Point
  • Reporting Point
  • Site Database
  • Software Update Point
  • User State Migration Point
  • Application Catalogue Website Point

In order to support installing these roles, below is a list of items that I need to pre-configure:

  • Server Roles & Features
  • Windows Assessment and Deployment Kit (ADK)

I already have set up the SQL backend here.

Server Roles & Features

I’ll be automating the Server Roles and their Features.  Let’s start:

In Server Manager, click Manage, Add Roles and Features.  Select the following Server Roles

  • Application Server
  • Web Server (IIS) – when enabling this role, you’ll be immediately prompted to add features -  accept the defaults and click Add Features
  • Windows Deployment Services – when enabling this role, you’ll be immediately prompted to add features -  accept the defaults and click Add Features

RTT10-01

Click Next.  Select the following Features:

  • HTTP Activation (Expand .NET Framework 3.5 Features, enable HTTP Activation) – when enabling this feature, you’ll be immediately prompted to add other features -  accept the defaults and click Add Features
  • Non-HTTP Activation
  • Background Intelligent Transfer Service (BITS) – when enabling this feature, you’ll be immediately prompted to add other features -  accept the defaults and click Add Features
  • Compact Server (Expand BITS)
  • Remote Differential Compression

RTT10-02

Click Next.  Add the following Application Server Role Services:

  • .NET Framework 4.5

RTT10-03

Click Next.  Add the following Web Server (IIS) Role Services:

  • Windows Authentication
  • ASP.NET 3.5 (and automatically selected features)
  • ASP.NET 4.5 (and automatically selected features)
  • IIS 6 WMI CompatibilityRTT10-04

Click Next.  The WDS Role services for Deployment Server and Transport Server should be enabled by default (ensure that they are).

RTT10-05

Click Next.  You’ll be presented with a Confirmation screen.  Note the warning message that prompts you to specify an alternate source path:

RTT10-06

Click “Specify an alternate source path” and enter the DVD drive\sources\sxs folder; in my case D:\sources\sxs and click OKRTT10-07

On the Confirmation page, click “Export configuration settings”, save the file with a meaningful name:

RTT10-08

On the Confirmation page, click “Restart the destination server automatically if required” (but you won’t really need to restart), then click Install to install the Roles and their features.  Away you go.

Installing the Roles and Features using PowerShell.

Notice that XML I exported just before?  We can use that in a script to quickly install the roles and features using PowerShell.  I followed this guide

http://technet.microsoft.com/en-us/library/hh831809.aspx

Here’s how to do that:

Click Start, run Windows PowerShell as Administrator, copy the below text and paste it into your console

function Invoke-WindowsFeatureBatchDeployment {
    param (
        [parameter(mandatory)]
        [string[]] $ComputerNames,
        [parameter(mandatory)]
        [string] $ConfigurationFilePath
    )

    # Deploy the features on multiple computers simultaneously.
    $jobs = @()
    foreach($ComputerName in $ComputerNames) {
        $jobs += Start-Job -Command {
            Install-WindowsFeature -ConfigurationFilePath $using:ConfigurationFilePath -ComputerName $using:ComputerName -Restart
        } 
    }

    Receive-Job -Job $jobs -Wait | Select-Object Success, RestartNeeded, ExitCode, FeatureResult
}

Run the following command – remember to substitute your computer name and filepath to your XML:

Invoke-WindowsFeatureBatchDeployment -ComputerNames "RTT-CM1" -ConfigurationFilePath "C:\Users\P
ublic\Documents\SCCM2012SP1_prereq_DeploymentConfigTemplate.xml"

Note:  If the above script fails and complains about missing “source” files, follow this article on Microsoft’s Knowledgebase.

If you want to see the Roles and Features installed, in your PowerShell session, type:

Get-WindowsFeature

Windows Assessment and Deployment Kit (ADK)

You can download this from here.  Run the adksetup.

Select to download the required files to be used at a later stage:

RTT10-09

Click Next etc to complete the download of the files for offline use later.

Hopefully the above gives you a head start when you want to quickly deploy that Primary Site server.  Have fun…

 

One thought on “Automate SCCM 2012 SP1 Primary Site Server Roles and Features Prerequisites

  1. Pingback: Install System Center Configuration Manager 2012 SP1 Step By Step | Random Tech Tips

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>