The following PowerShell code will install the required Web Server Role with the appropriate services and additional required Windows Features.
Windows PowerShell
Import-Module ServerManager
Add-WindowsFeature NET-Framework-Core,BITS,RDC,Web-ASP-Net,Web-ASP,Web-Windows-Auth,Web-WMI,Web-Metabase
Add-WindowsFeature NET-Framework-Core,BITS,RDC,Web-ASP-Net,Web-ASP,Web-Windows-Auth,Web-WMI,Web-Metabase
You may require additional Roles or Features depending on your environment. If you already have a system deployed with the required Roles and Features, you can Install Windows Roles and Features Using a Template Server.
Graphical Interface
If you chose to manually install the required Roles and Features:- On Windows Server 2012, from Server Manager, click the Manage link, then select Add Roles and Features.
- On the Installation Type section of the Wizard, select the Role-based or feature-based installation option.
- Proceed through the Wizard, following the prompts to install the appropriate Roles and Features to the desired server(s).
Ensure all of the following are installed and enabled:
Web Server (IIS) role should be installed with the following list of role services:
- Static Content
- Default Document
- Directory Browsing
- HTTP Errors
- HTTP Redirection
- ASP.NET
- .NET Extensibility
- ISAPI Extensions
- ISAPI Filters
- HTTP Logging
- Logging Tools
- Request Monitor
- Tracing
- Windows Authentication
- Request Filtering
- Static Content Compression
- Dynamic Content Compression
- IIS Management Console
- IIS 6 Metabase Compatibility
- IIS 6 WMI compatibility
- Background Intelligent Transfer Service (BITS)
- Remote Differential Compression
- Web Server (IIS) Tools
- BITS Server Extensions Tools
- Windows Server Update Services
- Network Policy Server
If you are not using Windows Server 2012, reference Appendix C – Guidance for Windows Server 2008 R2 OS - Add Roles & Features (Windows Server 2008 R2).
No comments :
Post a Comment