Install and setup a website in IIS on Windows 10

If you want to learn more about web design and development, installing Internet Information Services (IIS) on your Windows 10 computer is a good way to do it. IIS is a free Windows feature that comes with Windows 10, so why not use it?

There are 3 ways to install and setup a website in IIS on Windows 10; using the graphical user interface (GUI), PowerShell or Windows CMD.

Install IIS using GUI

This is a simple method to set up a website in IIS. It can be ideal if you are new to PowerShell or Windows commands.

1. Start typing “turn on windows” in the Search bar. The Turn Windows features on or off utility will appear. Click on it.

2. The Windows Features window will open. It may take a moment for other features to load. Once done, click the check box next to Internet Information Services , then click the OK button.

Install and setup a website in IIS on Windows 10
Click the check box next to Internet Information Services

3. The installation will begin and may take a few minutes. Once complete, click the Close button.

4. To make sure IIS is installed and running, type IIS in the Search bar near the Start button. You should see Internet Information Services Manager as a result . Click on it to open it.

5. Once IIS Manager opens, look on the left side of the window under Connections. Expand the tree menu until you see Default Web Site . That is a placeholder website installed with IIS. Click on it to select it.

Install and setup a website in IIS on Windows 10
Expand the tree menu until you see Default Web Site

6. On the right side of IIS Manager , look at the Browse Website section . Click Browse *:80 (http) . The default website will open in the default web browser.

Install and setup a website in IIS on Windows 10
Click Browse *:80 (http)

7. You will see a web page like this. Note that the address bar says localhost. That is the address to enter into the new web page.

Install and setup a website in IIS on Windows 10
Address to enter new website

Create your first website for IIS

Before we get into the other two methods of installing IIS, let’s look at where the files that make up your website are stored. This article will also create a very basic website. Once you learn how to do this, you’ll have the basics down pat for learning web design and development.

1. Once IIS is installed, open File Explorer . Navigate to C:\intepub\wwwroot. This is where the files that make up your website need to be stored. You'll see the default IIS website file, iisstart.html , and the image that appears on the page, iisstart.png. This is where you'll save your first website.

Install and setup a website in IIS on Windows 10
Navigate to C:\intepub\wwwroot

2. Open Notepad with admin rights . To save to wwwroot location , you must be an administrator.

3. Save the file to the wwwroot location . Name it index.html and change Save as type: to All Files . Then click the Save button.

Install and setup a website in IIS on Windows 10
Save the file to wwwroot location

4. Now that it's saved as the correct filetype, let's add some content to it. Enter the following HTML code for a very basic web page and save it:

 

Hello World!

5. Go back to the web browser with the default IIS website. Click the Refresh button. You should now see your first web page.

Install IIS using Windows commands

You can shorten the IIS installation process to a command line. It can be done in Windows Command Prompt or using PowerShell.

1. Open Command Prompt with admin rights .

2. Enter the following command and press Enter:

DISM /online /enable-feature /featureName:IIS-DefaultDocument /All

3. You will see a progress bar appear. When it reaches 100.0% and you see the message “The operation completed successfully” , you can close Command Prompt. IIS has been installed.

Install and setup a website in IIS on Windows 10
IIS is installed

4. Test to make sure you can open IIS Manager and that the installation worked, using steps 4 - 7 from the Installing IIS using the GUI section.

Install IIS using PowerShell

1. Run PowerShell ISE with admin rights.

Install and setup a website in IIS on Windows 10
Run PowerShell ISE with admin rights

2. Type the following cmdlet and run it:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -NoRestart

3. You will see a progress bar start. Once complete, check to make sure IIS is installed and working.

This step is optional, but you can save it as a PowerShell script and then run it at any time. Play around with the script and add different parameters. In the end, you'll have an IIS setup script that sets everything up exactly the way you want it, ready to use anytime, with just one click.

Leave a Comment

What Young Riders Should Know About Moving Their Motorcycles Across Cities

What Young Riders Should Know About Moving Their Motorcycles Across Cities

Long-distance travel can involve heavy traffic, changing weather conditions, and rider fatigue. If you are also dealing with the responsibilities of moving home, such as packing belongings or coordinating accommodation, a long ride may add unnecessary pressure to an already busy schedule.

Solving Microsoft Teams Shortcut Error Not Opening

Solving Microsoft Teams Shortcut Error Not Opening

Tired of Microsoft Teams shortcut error preventing you from opening the app? Follow our expert, step-by-step guide with the latest fixes for instant resolution. Works on Windows, Mac & web – no tech skills needed!

Solving Microsoft Teams Task Management Sync Error

Solving Microsoft Teams Task Management Sync Error

Tired of Microsoft Teams Task Management Sync Error halting your workflow? Follow our proven, step-by-step fixes to resolve sync issues fast and restore seamless task collaboration. No tech expertise needed!

Troubleshooting Microsoft Teams Wiki Error Formatting

Troubleshooting Microsoft Teams Wiki Error Formatting

Struggling with Microsoft Teams Wiki Error Formatting? This step-by-step guide reveals proven fixes for common wiki tab issues, ensuring smooth editing and collaboration in Teams. Get back to productive wikis fast!

How to Fix Microsoft Teams Installation Error for Linux

How to Fix Microsoft Teams Installation Error for Linux

Struggling with Microsoft Teams installation error on Linux? Discover step-by-step fixes for Ubuntu, Fedora & more. Resolve dependency issues, crashes, and errors quickly with our ultimate guide. Get Teams running smoothly today!

Solving Microsoft Teams Error Page Not Loading

Solving Microsoft Teams Error Page Not Loading

Struggling with Microsoft Teams "Error Page" not loading? Get step-by-step fixes for desktop, web, and mobile. Solve Microsoft Teams Error Page issues quickly and resume seamless teamwork today.

Solving Microsoft Teams Error Screenshot Issues

Solving Microsoft Teams Error Screenshot Issues

Tired of Microsoft Teams "Error Screenshot" blocking your workflow? Get proven, step-by-step solutions to resolve screenshot errors in Teams instantly and boost productivity. No tech skills needed!

How to Fix Microsoft Teams Error U User

How to Fix Microsoft Teams Error U User

Tired of Microsoft Teams "Error U" User blocking your chats? Get proven, step-by-step fixes to clear cache, reset, and restore seamless collaboration instantly.

Where are Microsoft Teams Registry Keys Located on Windows 11?

Where are Microsoft Teams Registry Keys Located on Windows 11?

Unlock the precise locations of Microsoft Teams registry keys on Windows 11. Step-by-step guide to find, access, and safely tweak them for optimal performance and troubleshooting. Essential for IT pros and Teams enthusiasts.

How to Fix Microsoft Teams Training Error Video Lag

How to Fix Microsoft Teams Training Error Video Lag

Tired of Microsoft Teams "Training Error" Video Lag ruining your meetings? Follow our step-by-step guide with the latest fixes for smooth video calls—no more frustration!