$features = @("Web-ServerRSAT", "Web-WebServer", "Web-Common-HttpRSAT-AD-Powershell", "WebRSAT-DefaultAD-DocTools", "WebRSAT-Static-ContentADDS", "WebRSAT-HttpAD-RedirectAdminCenter", "Web-Performance", "Web-Stat-CompressionRSAT-ADDS-Tools", "Web-SecurityPowershell", "Webpowershell-Filteringv2", "Web-Basic-Auth", "Web-Windows-Auth", "Web-App-Dev", "Web-Net-Ext45", "Web-AppInit", "Web-Asp-Net45", "Web-ISAPI-Ext", "Web-ISAPI-Filter", "Web-Mgmt-Tools", "Web-Mgmt-Consolepowershell-ise", "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
} |