Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Install and Use IIS on Windows Server 2019

Learn how to install and use IIS on Windows server 2019 with clear steps, practical tips, and troubleshooting advice for a smoother, more reliable result.

Table of Contents

This practical guide walks through how to install and use IIS on Windows server 2019, explains the main requirements, and highlights common issues that may appear along the way.

Install IIS on Windows Server 2019

Step 1. Run Powershell as admin and install IIS.

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # install IIS with admin tools PS C:UsersAdministrator> Install-WindowsFeature Web-Server -IncludeManagementTools Success Restart Needed Exit Code Feature Result ------- -------------- --------- -------------- True No Success {Common HTTP Features, Default Document, D. # verify running to access to default web site PS C:UsersAdministrator> Invoke-WebRequest http://localhost StatusCode : 200 StatusDescription : OK Content : ; outerText=; tagName=A; href=http://go.microsoft.com/fwlink/?linkid=66138&clcid=0x409}} ParsedHtml : System.__ComObject RawContentLength : 703

Step 2. Run Server Manager and click Add roles and features .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 3. Click the Next button .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 4. Select Role-based or feature-based installation .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 5. Select the host you want to add services to.

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 6. Check the box for Web Server (IIS) .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 7. Additional features are required to add IIS Server. Click the Add Features button > Next .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 8. Click the Next button .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 9. Click the Next button .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 10. This is the selection of Web Server features. Select the features you want to add. In this example, the default options are preserved. Of course, you can add these features after you install IIS.

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 11. Click the Install button .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 12. After finishing the installation, click the Close button .

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 13. Run your web browser and go to localhost , then you can verify if IIS is running normally.

Install IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Using IIS on Windows Server 2019

Step 1. Run Powershell with admin rights and configure the following:

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # show Sites list : [Default Web Site] is only set PS C:UsersAdministrator> Get-Website Name ID State Physical Path Bindings ---- -- ----- ------------- -------- Default Web Site 1 Started %SystemDrive%inetpubwwwroot http *:80: # [Physical Path] is the Document Root PS C:UsersAdministrator> Get-ChildItem C:inetpubwwwroot Directory: C:inetpubwwwroot Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 8/27/2019 6:57 PM 703 iisstart.htm -a---- 8/27/2019 6:57 PM 99710 iisstart.png # verify accesses : [iisstart.htm] responds PS C:UsersAdministrator> Invoke-WebRequest localhost StatusCode : 200 StatusDescription : OK Content : Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:SitesDefault Web Site" -Name "value" | select value Value ----- Default.htm Default.asp index.htm index.html iisstart.htm # create a test page under the Document Root and verify working # [Write-Output] generates with UTF-16, so specify encoding explicitly with [Out-File] PS C:UsersAdministrator> Write-Output "IIS Default Start Page" | Out-File C:inetpubwwwrootDefault.htm -Encoding Default # verify accesses # for [curl.exe], specify extension ⇒ if not specify extension, [curl] is an Alias from [Invoke-WebRequest] PS C:UsersAdministrator> curl.exe localhost IIS Default Start Page

Step 2. Run Start> Server Manager and click Tools> Internet Information Services (IIS) Manager .

Using IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 3. Open items in the left panel, Default Web Site is configured.

Using IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 4. Select Default Web Site and click Advanced Settings . , then you can confirm settings such as Physical Path (Document Root) , etc.

Using IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 5. Open Default Document , then can confirm the default document.

Using IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 6. You can see the default documents.

Using IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Step 7. Create a test page in Physical Path (Document Root) and verify permissions using a web browser.

Using IIS on Windows Server 2019 — How to Install and Use IIS on Windows Server 2019

Hope you are succesful.

Key Takeaways

Use the information above as a practical reference for how to install and use IIS on Windows server 2019. Review each step carefully, confirm any requirements, and choose the option that best fits your situation.

FAQ

What does this guide explain about Install and Use IIS on Windows Server 2019?

It explains the main concepts, practical considerations, and useful steps related to install and use IIS on Windows server 2019 without requiring advanced knowledge.

Who can benefit from learning about Install and Use IIS on Windows Server 2019?

This information is useful for readers who want a clear overview, practical guidance, and reliable steps related to install and use IIS on Windows server 2019.

What should I check before applying this information?

Review the requirements, confirm that your device, software, or situation matches the instructions, and back up important data before making major changes.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.