$features = @("RSATWeb-Server", "Web-WebServer", "Web-Common-Http", "Web-Default-Doc", "Web-Static-Content", "Web-Http-Redirect", "Web-Performance", "Web-Stat-Compression", "Web-Security", "Web-Filtering", "Web-Basic-Auth", "Web-Windows-Auth", "RSATWeb-ADApp-PowershellDev", "RSATWeb-ADNet-ToolsExt45", "RSATWeb-ADDSAppInit", "RSATWeb-ADAsp-AdminCenterNet45", "RSATWeb-ADDSISAPI-ToolsExt", "PowershellWeb-ISAPI-Filter", "powershellWeb-Mgmt-v2Tools", "powershellWeb-Mgmt-iseConsole", "NET-Framework-Features", "NET-Framework-Core", "net-http-activation", "net-non-http-activ", "net-framework-45-features", "net-http-activation", "net-non-http-activ", "net-framework-45-features", "net-wcf-msmq-activation45", "net-wcf-pipe-activation45", "net-wcf-tcp-activation45", "NET-WCF-TCP-PortSharing45")
foreach($feature in $features)
{
Install-WindowsFeature -Name $feature
} |