Installing Windows features and roles

Windows Server 2012 SP2, and PowerShell 4.0 introduced new cmdlets to install Windows features through the use of scripts. This provides a further layer of automation to the PowerShell toolset as you can dynamically and completely build servers with a single script.

Tip

If you want to manage the Windows features cmdlets from a Windows 8.1 system, you will first need to install Remote Server Administration Tools. Then you will have to enable Server Manager the feature. This will enable you to manage server-based operating systems such as Windows Server 2012 R2. These can be found at http://www.microsoft.com/en-us/download/details.aspx?id=39296.

To view the features that are available for installation and uninstallation ...

Get Mastering Windows PowerShell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.