Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Best way to install roles and features in server 2008 r2

$
0
0

Hi All,

I want to install below roles in server 2008 r2. I use import-module servermanager, add-windows feature myroles_and_features. Here are the roles and features:

gpmc,Web-Server,Web-Common-Http,Web-Default-Doc,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Scripting-Tools,Web-Mgmt-Service,Web-Mgmt-Compat,Web-Metabase,Web-WMI,Web-Lgcy-Scripting,Web-Lgcy-Mgmt-Console,RDS-RD-Server,RDS-Licensing,NET-Framework, NET-Framework-Core, Application-Server.

What is the best way to install all these roles with the add-windows feature command. Because I think some of the above roles might need a restart. For example, if I execute all the above roles at a time, It throws me an error saying application-server is not installed. So, I am executing all the above roles except application-server role, then reboot and then install application-server role. Hence I want to know what is the best way to install all the above roles.

Chaitanya.


Viewing all articles
Browse latest Browse all 10624

Trending Articles