Use PowerShell to Install Server 2012 roles and features for CM

Using PowerShell to install the Server 2012 roles and features for Configuration Manager is really super easy. Discovered an issue installing several features as the script needed access to the server 2012 source.

Open PowerShell as an administrator, modify the –Source parameter (below) to point to the proper location for sources\sxs (note: UNC will work as well).

image

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 -Source K:\sources\sxs
Install-WindowsFeature NET-Framework-Features -Source K:\sources\sxs
Install-WindowsFeature Web-Asp-Net -Source K:\sources\sxs
Install-WindowsFeature Web-Asp-Net45 -Source K:\sources\sxs
Install-WindowsFeature NET-HTTP-Activation -Source K:\sources\sxs
Install-WindowsFeature NET-Non-HTTP-Activ -Source K:\sources\sxs

Advertisements
This entry was posted in ConfigMgr, PowerShell, Server 2012. Bookmark the permalink.

One Response to Use PowerShell to Install Server 2012 roles and features for CM

  1. Pingback: Use PowerShell to Install Server 2012 roles and features for CM | Skatterbrainz Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s