This script will ONLY install the Roles and Features needed for IIS.
# * Make sure you run this script from a Powershell Admin Prompt!
# * Make sure Powershell Execution Policy is bypassed to run these scripts:
# * YOU MAY HAVE TO RUN THIS COMMAND PRIOR TO RUNNING THIS SCRIPT!
Set-ExecutionPolicy Bypass -Scope Process
# Web Server (IIS) Web-Server
# Web Server Web-WebServer
# Common HTTP Features Web-Common-Http
# Default Document Web-Default-Doc – Need for default documents
# HTTP Errors Web-Http-Errors – Need to produce HTTP Errors
# Static Content Web-Static-Content – Need for Static Content
# Health and Diagnostics Web-Health
# HTTP Logging Web-Http-Logging – Need for logging web events for troubleshooting
# Performance Web-Performance
# Static Content Compression Web-Stat-Compression – Need to optimize web traffic
# Dynamic Content Compression Web-Dyn-Compression – Need to optimize web traffic
# Security Web-Security
# Request Filtering Web-Filtering – Need to write rules to prevent attacks
# Application Development Web-App-Dev
# .NET Extensibility 4.6 Web-Net-Ext45 – Need for SOAP and RESTful Interface
# ASP.NET 4.6 Web-Asp-Net45 – Need for SOAP and RESTful Interface
# ISAPI Extensions Web-ISAPI-Ext – Automatically installed with ASP.NET 4.6
# ISAPI Filters Web-ISAPI-Filter – Automatically installed with ASP.NET 4.6
# WebSocket Protocol Web-WebSockets – Need for ManitouNEO functionality
# Management Tools Web-Mgmt-Tools
# IIS Management Console Web-Mgmt-Console – Need for Managing website
#.NET Framework 4.6 Features NET-Framework-45-Fea... – Need for Manitou Programs
# .NET Framework 4.6 NET-Framework-45-Core – Need for Manitou Programs
# ASP.NET 4.6 NET-Framework-45-ASPNET – Need for Manitou Programs
# WCF Services NET-WCF-Services45 – Need for Manitou Programs
# HTTP Activation NET-WCF-HTTP-Activat... – Need for BoldNET Silverlight
# TCP Port Sharing NET-WCF-TCP-PortSharing45
#
Install-WindowsFeature -Name Fax
Install-WindowsFeature -Name telnet-client
Install-WindowsFeature -Name Web-Server
Install-WindowsFeature -Name Web-WebServer
Install-WindowsFeature -Name Web-Common-Http
Install-WindowsFeature -Name Web-Default-Doc
Install-WindowsFeature -Name Web-Http-Errors
Install-WindowsFeature -Name Web-Static-Content
Install-WindowsFeature -Name Web-Health
Install-WindowsFeature -Name Web-Http-Logging
Install-WindowsFeature -Name Web-Performance
Install-WindowsFeature -Name Web-Stat-Compression
Install-WindowsFeature -Name Web-Dyn-Compression
Install-WindowsFeature -Name Web-Security
Install-WindowsFeature -Name Web-filtering
Install-WindowsFeature -Name Web-App-Dev
Install-WindowsFeature -Name Web-Net-Ext45
Install-WindowsFeature -Name Web-Net-Ext
Install-WindowsFeature -Name Web-AppInit
Install-WindowsFeature -Name Web-ASP
Install-WindowsFeature -Name Web-Asp-Net
Install-WindowsFeature -Name NET-Framework-Core
Install-WindowsFeature -Name NET-HTTP-Activation
Install-WindowsFeature -Name Web-Asp-Net45
Install-WindowsFeature -Name Web-ISAPI-Ext
Install-WindowsFeature -Name Web-ISAPI-Filter
Install-WindowsFeature -Name Web-Websockets
Install-WindowsFeature -Name Web-Mgmt-Tools
Install-WindowsFeature -Name Web-Mgmt-Console
Install-WindowsFeature -Name NET-Framework-45-Features
Install-WindowsFeature -Name NET-Framework-45-Core
Install-WindowsFeature -Name NET-Framework-45-ASPNET
Install-WindowsFeature -Name NET-WCF-Services45
Install-WindowsFeature -Name NET-WCF-HTTP-Activation45
Install-WindowsFeature -Name NET-WCF-TCP-PortSharing45
echo 'Roles and Featuresinstall and configuration complete'; $wshell= New-Object -ComObject Wscript.Shell ; $wshell.Popup("Roles and Featuresinstall and configuration complete")