Windows 2025
Sponsored Link

IIS : Install2024/12/18

 

Install IIS (Internet Information Services) and Configure Web Server.

[1] Run PowerShell with Admin Privilege and Install IIS.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# install IIS with admin tools
PS C:\Users\Administrator> 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:\Users\Administrator> Invoke-WebRequest http://localhost 

StatusCode        : 200
StatusDescription : OK
Content           : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml">
                    <head>
                    <meta http-equiv="Content-Type" cont...
RawContent        : HTTP/1.1 200 OK
                    Accept-Ranges: bytes
                    Content-Length: 703
                    Content-Type: text/html
                    Date: Tue, 17 Dec 2024 23:57:04 GMT
                    ETag: "c121c72bdf50db1:0"
                    Last-Modified: Tue, 17 Dec 2024 23:55:37 GMT
                    Serve...
Forms             : {}
Headers           : {[Accept-Ranges, bytes], [Content-Length, 703], [Content-Type, text/html], [Date, Tue, 17 Dec 2024
                    23:57:04 GMT]...}
Images            : {@{innerHTML=; innerText=; outerHTML=<IMG alt=IIS src="iisstart.png" width=960 height=600>; outerText=;
                    tagName=IMG; alt=IIS; src=iisstart.png; width=960; height=600}}
InputFields       : {}
Links             : {@{innerHTML=<IMG alt=IIS src="iisstart.png" width=960 height=600>; innerText=; outerHTML=<A
                    href="http://go.microsoft.com/fwlink/?linkid=66138&clcid=0x409"><IMG alt=IIS src="iisstart.png"
                    width=960 height=600></A>; outerText=; tagName=A;
                    href=http://go.microsoft.com/fwlink/?linkid=66138&clcid=0x409}}
ParsedHtml        : System.__ComObject
RawContentLength  : 703
IIS : Install (GUI)
 

On GUI installation, set like follows.

[2] Run Server Manager and Click the [Add roles and features] link.
[3] Click the [Next] button.
[4] Select the [Role-based or feature-based installation].
[5] Select a Host which you'd like to add services.
[6] Check a box [Web Server (IIS)].
[7] Addtional features are required to add IIS Server. Click the [Add Features] button and then Click the [Next] button.
[8] Click the [Next] button.
[9] Click the [Next] button.
[10] This is the section to select Web Server features. Select them your'd like to add.
On this example, keep default and proceed next. It's possible to add these features after installing IIS, of course.
[11] Click the [Install] button.
[12] After finishing Installation, click the [Close] button.
[13] Run Web browser and access to [localhost], then it's possible to verify IIS is running normally.
Matched Content