Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

Powershell script to install ConfigMgr 2012 SP1 prereqs on Server 2012

Posted on January 28, 2013January 26, 2013 by Jörgen Nilsson

I have written different scripts before to install all the prereqs needed for Configuration Manager in different versions. There are great hydration kits out there which can be used to install a Configuration Manager 2012 environment, but if you only want to install all pre-reqs needed by System Center 2012 Configuration Manager SP1  on Windows Server 2012 then you can use this Powershell script.

Note that you need to supply a path to the binaries for .NET Framework 3.5 which is located in the Server 2012 installation media under \sources\sxs\

Change the path in red below to reflect your path to the binaries for .NET Framework 3.5.

install-windowsfeature web-server
install-windowsfeature as-web-support
install-windowsfeature application-server
install-windowsfeature web-wmi
install-windowsfeature WDS
install-Windowsfeature RDC
install-Windowsfeature BITS
install-windowsfeature web-net-ext -source d:\sources\sxs\
install-windowsfeature NET-HTTP-Activation
install-windowsfeature NET-NON-HTTP-Activ
install-windowsfeature web-asp
Install-WindowsFeature -Name UpdateServices, UpdateServices-Ui
& 'C:\Program Files\Update Services\Tools\WsusUtil.exe' postinstall contentdir=C:\WSUS
New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 1433,4022 -Protocol TCP -Profile any -Enabled True
New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 4022 -Protocol TCP -Profile any -Direction Outbound -Enabled True

install-windowsfeature web-server

install-windowsfeature as-web-support

install-windowsfeature application-server

install-windowsfeature web-wmi

install-windowsfeature WDS

install-Windowsfeature RDC

install-Windowsfeature BITS

install-windowsfeature web-net-ext -source d:\sources\sxs\

install-windowsfeature NET-HTTP-Activation

install-windowsfeature NET-NON-HTTP-Activ

install-windowsfeature web-asp

Install-WindowsFeature -Name UpdateServices, UpdateServices-Ui

& 'C:\Program Files\Update Services\Tools\WsusUtil.exe' postinstall contentdir=C:\WSUS

New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 1433,4022 -Protocol TCP -Profile any -Enabled True

New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 4022 -Protocol TCP -Profile any -Direction Outbound -Enabled True

2 thoughts on “Powershell script to install ConfigMgr 2012 SP1 prereqs on Server 2012”

  1. David says:
    February 10, 2013 at 12:54 pm

    Hi Jörgen!

    I have the Microsoft 10748A book and i can’t see anywhere that i need the Application server roles installed. What is it used for and how do you know you need it? :=)

    Reply
    1. Jörgen Nilsson says:
      February 10, 2013 at 8:13 pm

      Hi,
      The role inställs .NET framework + IIS Support.
      /jörgen

      Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
All code is provided "AS-IS" with no warranties.

Recent Posts

  • PowerShell script to keep Personal Teams away in Windows 11
  • Windows 11 Multi-App kiosk – a first look
  • Playing around with Driver Updates in Intune
  • MMUGSE – Summer Meetup 8th of June 2023
  • PS Script to Update Boot images with CU-CVE-2023-24932

©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT