Install SCCM 2012 Prerequisites via Commandline / PowerShell

Here’s a little summary that helps you install all Windows Features required to successfully run the System Center Configureation Manager 2012 Setup on a Windows Server 2012 Machine:

On an elevated PowerShell type the following:

To install .net Framework 3.5 (seems to be a bug in add/remove Features of Server 2012).
You need your Windows Installation media to do this. In my case, it was mounted on the D: Drive, please Change this as needed.

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

To Install all other Features:
Get-Module servermanager
Install-WindowsFeature Web-Windows-Auth
Install-WindowsFeature Web-ISAPI-Ext
Install-WindowsFeature Web-Metabase
Install-WindowsFeature Web-WMI
Install-WindowsFeature BITS
Install-WindowsFeature RDC
Install-WindowsFeature NET-Framework-Features
Install-WindowsFeature Web-Asp-Net
Install-WindowsFeature Web-Asp-Net45
Install-WindowsFeature NET-HTTP-Activation
Install-WindowsFeature NET-Non-HTTP-Activ

3 responses to Install SCCM 2012 Prerequisites via Commandline / PowerShell

You can even simplify this further by installing all of the windows features in the same line:

Install-WindowsFeature Web-Windows-Auth,Web-ISAPI-Ext,Web-Metabase,Web-WMI,BITS,RDC,NET-Framework-Features,Web-Asp-Net,Web-Asp-Net45,NET-HTTP-Activation,NET-Non-HTTP-Activ

Leave a Reply