Step-by-Step Guide: Installing IIS on Windows 10, 11, and Server

Whether you’re a developer needing a local testing environment, an IT administrator setting up a web application like Lansweeper, or looking to host your own website, Installing IIS (Internet Information Services) is a fundamental skill. IIS is Microsoft’s robust and feature-rich web server software built directly into Windows operating systems. While often associated with Windows Server, you can also easily install it on client versions like Windows 10 and Windows 11.
This guide provides clear, step-by-step instructions for installing IIS across different Windows platforms, covering both graphical user interface (GUI) methods and command-line options for automation.
What is IIS and Why Install It?
Internet Information Services (IIS) is a flexible, secure, and manageable web server for hosting anything on the Web. From simple static HTML websites to complex ASP.NET or PHP applications, IIS provides the necessary framework. Common reasons for installing IIS include:
- Hosting public-facing websites.
- Running internal web applications or intranets.
- Providing a platform for web services (APIs).
- Local development and testing of web applications.
- Specific software requirements (e.g., certain management consoles or legacy applications).
Prerequisites for Installing IIS
Before you begin, ensure you have:
- Administrative privileges on the target Windows machine.
- The appropriate version of Windows (Windows 10/11 Pro/Enterprise/Education or any recent Windows Server edition like 2019 or 2022). Note that Home editions of Windows might have limitations or lack IIS features.
Method 1: Installing IIS on Windows 10 / Windows 11 (GUI)
For desktop users, the most straightforward method involves using the “Turn Windows features on or off” dialog:
- Open Control Panel: Press `Win + R`, type `appwiz.cpl`, and press Enter. This opens the “Programs and Features” window.
- Access Windows Features: On the left-hand side, click “Turn Windows features on or off”.
- Locate IIS: Scroll down the list and find “Internet Information Services”.
- Select Components: Check the main box for “Internet Information Services”. You might need to expand this node and the “World Wide Web Services” node to select specific features depending on your needs. At a minimum, ensure “Web Management Tools” (specifically “IIS Management Console”) and “World Wide Web Services” -> “Common HTTP Features” -> “Default Document” and “Static Content” are checked. If you plan to run ASP.NET applications, expand “World Wide Web Services” -> “Application Development Features” and select the relevant ASP.NET versions.
- Install: Click “OK”. Windows will search for the required files and install IIS. This might take a few minutes.
- Verify: Once installed, open a web browser and navigate to `http://localhost`. You should see the default IIS welcome page.
Method 2: Installing IIS on Windows Server (Server Manager GUI)
On Windows Server operating systems (like Server 2019 or 2022), the standard method is using Server Manager:
- Launch Server Manager: This usually starts automatically upon login. If not, find it in the Start Menu.
- Start the Add Roles and Features Wizard: Click “Manage” in the top-right corner, then select “Add Roles and Features”.
- Initial Pages: Click “Next” through the “Before You Begin”, “Installation Type” (select “Role-based or feature-based installation”), and “Server Selection” (ensure your target server is selected) pages.
- Select Server Roles: On the “Server Roles” page, check the box next to “Web Server (IIS)”. If prompted to add required features (like the management tools), click “Add Features”. Click “Next”.
- Select Features: The “Features” page allows adding extra components unrelated to roles. Usually, you don’t need to add anything here for a basic IIS install unless specific features like .NET Framework versions are required. Click “Next”.
- Web Server Role (IIS) Information: Read the information page about the IIS role and click “Next”.
- Select Role Services: This is a crucial step. Review the available IIS components (“Role Services”). The defaults provide basic functionality. Consider adding services under “Common HTTP Features”, “Health and Diagnostics”, “Performance”, “Security”, and especially “Application Development” (like ASP.NET versions) based on your application requirements.
- Confirm and Install: Review your selections on the “Confirmation” page. You can check “Restart the destination server automatically if required”. Click “Install”.
- Monitor Progress: The installation progress will be displayed. You can close the wizard while installation continues in the background.
- Verify: Once completed, verify by browsing to `http://localhost` on the server.
Method 3: Installing IIS using PowerShell (Windows Server/Client)
For automation or command-line enthusiasts, PowerShell provides a quick way to install IIS and specific features.
Open an elevated PowerShell prompt (Run as Administrator) and use the `Install-WindowsFeature` cmdlet (primarily for Server) or `Enable-WindowsOptionalFeature` (for Client and Server):
On Windows Server:
Install-WindowsFeature -name Web-Server -IncludeManagementTools
To include common features like ASP.NET 4.7:
Install-WindowsFeature -name Web-Server, Web-Mgmt-Console, Web-Common-Http, Web-Default-Doc, Web-Dir-Browsing, Web-Http-Errors, Web-Static-Content, Web-Http-Logging, Web-Request-Monitor, Web-Http-Tracing, Web-Performance, Web-Stat-Compression, Web-Dyn-Compression, Web-Security, Web-Filtering, Web-Basic-Auth, Web-Windows-Auth, Web-App-Dev, Web-Net-Ext45, Web-Asp-Net45, Web-ISAPI-Ext, Web-ISAPI-Filter
On Windows 10/11:
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -All
(Note: `-All` installs default sub-features; you might need specific feature names for more granular control).
Basic Configuration and Next Steps
After installing IIS, simply having it installed isn’t the end. You’ll typically need to perform some basic configuration:
- Check Default Website: Open IIS Manager (type `inetmgr` in Run). Explore the default website configuration, its physical path (usually `C:\inetpub\wwwroot`), and default bindings (HTTP on port 80).
- Deploy Your Content: Place your website files (HTML, images, scripts, etc.) into the designated physical path.
- Configure Bindings: If hosting multiple sites or using HTTPS, you’ll need to configure site bindings (hostname, IP address, port, SSL certificates).
- Application Pools: Understand application pools for isolating applications and managing worker processes.
- Security Hardening: Review security settings, disable unused features, and ensure appropriate authentication and authorization methods are configured. Learn more about security best practices from official sources like Microsoft Learn.
- Explore Further: For more advanced setups, delve into topics like URL Rewrite, Request Filtering, and Logging. See our guide on important IIS configurations for more details.
Conclusion
Successfully installing IIS is the first step towards leveraging Microsoft’s powerful web server technology on Windows. Whether you use the user-friendly GUI methods via Control Panel or Server Manager, or opt for the efficiency of PowerShell, getting IIS up and running is accessible on both client and server operating systems. Remember that installation is just the beginning; proper configuration and ongoing management are key to running secure and efficient web applications.