Windows 2022
Sponsored Link

IIS : Install2022/01/26

 
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, 25 Jan 2022 05:29:35 GMT
                    ETag: "26b38758ac11d81:0"
                    Last-Modified: Tue, 25 Jan 2022 05:28:12 GMT
                    Serve...
Forms             : {}
Headers           : {[Accept-Ranges, bytes], [Content-Length, 703], [Content-Type, text/html], [Date, Tue, 25 Jan 2022
                    05:29:35 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 [Add roles and features].
[3] Click [Next] button.
[4] Select [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 [Add Features] button and then Click [Next] button.
[8] Click [Next] button.
[9] Click [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 [Install] button.
[12] After finishing Installation, click [Close] button.
[13] Run Web browser and access to [localhost], then it's possible to verify IIS is running normally.
Matched Content