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

Microsoft details Bluetooth LE Audio requirements and support for Windows 11, 10

Microsoft details Bluetooth LE Audio requirements and support for Windows 11, 10

Microsoft introduced Bluetooth LE (low energy) Audio support with Windows 11 22H2 KB5026446 (build 22621.1778), also known as Moment 3, in May 2023.

How to Change the Default User Account Avatar in Windows

How to Change the Default User Account Avatar in Windows

Changing your avatar on Windows 10 to your own photo, or a completely new style, will help you distinguish between user accounts on your computer.

Windows 11 Market Share Is Quickly Catching Up to Windows 10

Windows 11 Market Share Is Quickly Catching Up to Windows 10

The October 2024 report provides an overview of Windows 11's market share compared to other versions of Windows.

How to enable or disable Secure Sign-In on Windows 10, Windows 11

How to enable or disable Secure Sign-In on Windows 10, Windows 11

Windows is the most targeted operating system by hackers. Therefore, you should strengthen your PC's defenses to stay safe both online and offline. This article will guide you on how to enable or disable Secure Sign-In in Windows 10.

How to add a printer to Windows 10

How to add a printer to Windows 10

Adding a printer to Windows 10 is simple, although the process for wired devices will be different than for wireless devices.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

Do you want to speed up Windows 10, improve Windows 10 speed or speed up Windows 10 startup? All ways to speed up Windows 10 are in this article, please read and apply to make your Windows 10 computer run faster!

15 Diagnostic Tools to Check the Health of Your Windows PC

15 Diagnostic Tools to Check the Health of Your Windows PC

Whether you're new to Windows or a veteran, your system will eventually run into problems that aren't easy to diagnose. Before calling tech support, there are a number of PC diagnostic tools you can try.

How to Use Clipboard History in Windows 10

How to Use Clipboard History in Windows 10

Windows clipboard history got a major overhaul with the Windows 10 October update.

Microsoft is bringing annoying Windows 11 Start menu ads to Windows 10

Microsoft is bringing annoying Windows 11 Start menu ads to Windows 10

Microsoft continues to announce plans to add new features to Windows 10, despite the fact that the operating system will inevitably die in October 2025.

Why do so many people downgrade from Windows 11 to Windows 10?

Why do so many people downgrade from Windows 11 to Windows 10?

Although Microsoft promotes Windows 11 as the future of computing, many people have recently downgraded to Windows 10 on their main PCs. Here's why it might actually be worth it to go back to an older operating system.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

How to hide the Taskbar on Windows 10 extremely easy

How to hide the Taskbar on Windows 10 extremely easy

When you move the mouse to the Taskbar, it displays all the functions as default when you have not set it up, but if you move the mouse elsewhere, the Taskbar will automatically hide.

How to download and update Bluetooth driver for Windows 10

How to download and update Bluetooth driver for Windows 10

Bluetooth makes our life smarter and more convenient, to avoid possible Bluetooth problems in Windows 10, such as Bluetooth not available, users should download and update Bluetooth driver for Windows 10 regularly.

How to Make Windows 11 Look Like Windows 10

How to Make Windows 11 Look Like Windows 10

If you miss the familiar look and feel of Windows 10, you can restore the Start menu, taskbar, and other familiar elements with a few simple tweaks.

6 Ways to Open Computer/System Properties in Windows 10

6 Ways to Open Computer/System Properties in Windows 10

You can use one of the following 6 methods to open Computer Properties (or System Properties) on Windows 10.

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!

How to Fix Microsoft Teams Error occurred During Sign-In

How to Fix Microsoft Teams Error occurred During Sign-In

Frustrated by Microsoft Teams "Error occurred" during sign-in? Discover proven, step-by-step fixes to get back online fast. Clear cache, reset app, and more for seamless login. Works on Windows, Mac & web.

Troubleshooting Microsoft Teams Call Error Disconnecting

Troubleshooting Microsoft Teams Call Error Disconnecting

Struggling with Microsoft Teams "Call Error" Disconnecting? Discover proven, step-by-step fixes for call drops, network issues, and more. Get back to seamless meetings fast with our expert troubleshooting guide.

How to Fix Microsoft Teams Error 2603: Login Loop Fix

How to Fix Microsoft Teams Error 2603: Login Loop Fix

Stuck in Microsoft Teams Error 2603 login loop? Get proven step-by-step fixes to resolve the issue fast and restore seamless teamwork. Clear cache, reset, reinstall – all covered!

How to Fix Microsoft Teams Voice Call Error

How to Fix Microsoft Teams Voice Call Error

Tired of Microsoft Teams voice call errors? Follow our step-by-step guide to troubleshoot no audio, echo, or call drops. Proven fixes for crystal-clear calls every time.

How to Fix Microsoft Teams Workflows Error Power Automate

How to Fix Microsoft Teams Workflows Error Power Automate

Struggling with Microsoft Teams "Workflows Error" in Power Automate? Discover proven, step-by-step fixes to resolve connection issues, permissions, and more. Get your workflows running smoothly today!

How to Fix Microsoft Teams Reddit Popular Error Fixes

How to Fix Microsoft Teams Reddit Popular Error Fixes

Tired of Microsoft Teams crashes, black screens, and sign-in loops? Unlock Reddit's most popular, proven fixes to resolve common Microsoft Teams errors quickly and get back to productive meetings. Step-by-step guides inside!

Troubleshooting Microsoft Teams Error 53003: Access Denied

Troubleshooting Microsoft Teams Error 53003: Access Denied

Tired of Microsoft Teams Error 53003 Access Denied blocking your meetings? Discover proven, step-by-step fixes to troubleshoot and resolve it quickly – no tech expertise needed!

How to Fix Microsoft Teams Media Error During Calls

How to Fix Microsoft Teams Media Error During Calls

Tired of Microsoft Teams media errors ruining your calls? Follow our expert, step-by-step guide to fix audio, video, and media issues quickly. Restore crystal-clear meetings today!

How to Fix Microsoft Teams Classic Login Error

How to Fix Microsoft Teams Classic Login Error

Struggling with Microsoft Teams "Classic" login error? Discover proven, step-by-step fixes to get back online fast. Clear cache, reset credentials, and more—no tech skills needed!

Troubleshooting Microsoft Teams Test Call Mic Error

Troubleshooting Microsoft Teams Test Call Mic Error

Struggling with Microsoft Teams Test Call mic error? Discover step-by-step troubleshooting for microphone issues, from quick checks to advanced fixes. Restore crystal-clear audio in minutes!

Solving Microsoft Teams Error AADSTS90023: Invalid Authentication

Solving Microsoft Teams Error AADSTS90023: Invalid Authentication

Struggling with Microsoft Teams Error AADSTS90023 Invalid Authentication? Discover step-by-step fixes to resolve this Azure AD issue quickly. Clear cache, reset credentials, and get back to seamless collaboration today!

Solving Microsoft Teams Error 1200: Step-by-Step Recovery

Solving Microsoft Teams Error 1200: Step-by-Step Recovery

Struggling with Microsoft Teams Error 1200? Discover proven step-by-step fixes to resolve connection issues, clear cache, and get back to seamless collaboration. Quick recovery tips inside!

Why is My Microsoft Teams Status Stuck on Away?

Why is My Microsoft Teams Status Stuck on Away?

Frustrated with your Microsoft Teams status stuck on 'Away'? Uncover the top reasons like idle timeouts and power settings, plus step-by-step fixes to get back to 'Available' fast. Updated with the latest Teams features.

How to Fix Microsoft Teams Error: Administrator Has Disabled Chat

How to Fix Microsoft Teams Error: Administrator Has Disabled Chat

Stuck with Microsoft Teams error "Administrator Has Disabled Chat"? Discover proven step-by-step solutions for admins and users to restore chat functionality fast. No tech skills needed!