Skip to content
Winsides.com

Windows Insides

Winsides.com

Windows Insides

  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
Close

Search

Winsides.com

Windows Insides

Winsides.com

Windows Insides

  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
Close

Search

Home/Windows 11/CMD & PowerShell/Enable Internet Information Services using Command Prompt (CMD)

Enable Internet Information Services using Command Prompt (CMD)

Vigneshwaran Vijayakumar
By Vigneshwaran Vijayakumar
November 30, 2024 4 Min Read
0

Enable IIS using CMD: It is a web server developed by Microsoft for hosting Websites, Applications, and Services on the Windows OS. IIS provides seamless integration with Windows Server and the broader Microsoft ecosystem. Its reliability and widespread support make it a trusted platform for enterprise environments, offering the stability and performance required for critical operations.

There are several ways available to enable this feature on Windows OS, you can either Enable Internet Information Services via Windows Features (GUI) on Windows 11 OS, or you can use the Command prompt to enable this feature in the CLI interface. With a little tweak in the command, we can enable IIS on Windows Servers using CLI. This article will provide detailed steps to enable Internet Information Services using Command Prompt. Let’s get started.

Table of Contents

  • Internet Information Services (IIS) availability on different Windows Editions
  • Easy way to Enable Internet Information Services using Command Prompt
    • Let’s decode the command:
  • Enable Internet Information Services using PowerShell
  • Video Walkthrough for Enabling IIS using CMD and PowerShell
  • Take away

Internet Information Services (IIS) availability on different Windows Editions

This section provides information on the availability of this feature on different Windows Editions.

Windows EditionsAvailability
Windows ServersFully Available
Windows 11 HomeYes
Windows 11 ProfessionalYes
Windows 11 EducationYes
Windows 11 EnterpriseYes
Windows 11 Pro EducationYes
Windows 11 SENo
Windows 11 IoT EnterpriseYes

Easy way to Enable Internet Information Services using Command Prompt

  • Go to the Start menu and Search for Command Prompt. Run Command Prompt as Administrator.
Open Command Prompt as Administrator
Open Command Prompt as Administrator
  • User Account Control (UAC) will prompt for your permission to open CMD in Administrator mode. To confirm the action, click Yes.
  • On the Command Prompt, execute the following command. dism /online /enable-feature /featurename:IIS-WebServerRole /all /norestart
Command to Enable IIS using CMD
Command to Enable IIS using CMD
  • The above command will use DISM to Enable IIS using Command Prompt. Kindly be patient when the system enables this feature.
System Enables the required Feature
The system enables the required Feature
  • Once the process is complete, we will get the message, “The operation completed successfully“.
  • That is it. Internet Information Services is enabled via Command Prompt.
Operation completed successfully
The Operation was completed successfully

The same CMD command, dism /online /enable-feature /featurename:IIS-WebServerRole /all, can be used to install IIS on all modern Windows Server editions, including Windows Server 2012, 2016, 2019, and 2022, as it leverages the DISM tool, which is consistent across these versions.

Let’s decode the command:

Decoding IIS Enable Command
Decoding IIS Enable Command
  • dism: This stands for Deployment Imaging Service and Management Tool. It is a command-line tool used for managing Windows features, packages, and Windows image files (WIMs).
  • /online: This flag indicates that the operation is being performed on the currently running (online) Windows installation. It is used to modify the features of the live system.
  • /enable-feature: This flag tells DISM that you want to enable a specific feature in the operating system.
  • /featurename:IIS-WebServerRole: IIS-WebServerRole is the feature that installs the core IIS Web Server components. It includes necessary IIS functions like HTTP Server, configuration management, and core modules.
  • /all: This flag ensures that all required dependent features (Dependicies) for the IIS Web Server are also enabled.
  • /norestart: This flag prevents Windows from restarting automatically after enabling the feature. If you want the system to restart automatically once the feature is enabled, you can omit this flag.

Enable Internet Information Services using PowerShell

In this section, we will check out how to enable IIS using PowerShell. The following are the steps.

  • Open the Start menu using the shortcut Win Key + S, search for PowerShell, and run PowerShell as an Administrator.
Run PowerShell as Administrator
Run PowerShell as Administrator
  • Enter the following command in the PowerShell and click Enter. Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -All
PowerShell is installing IIS
PowerShell is installing IIS
  • Now, the PowerShell will install the Internet Information Services Feature and its related dependencies. Kindly be patient.
  • Once the process is completed, the system will prompt you whether you want to Restart or not. Enter Y for Restart and N for Restart later.
Choose whether you want to restart your system or not
Choose whether you want to restart your system or not
  • Upon entering your desired value, the system will conclude the process by displaying the summary. If the Restart needed column is True, then the system strongly suggests that it requires a restart so that the changes made will reflect.
Restart needed
Restart needed
  • That is it. IIS is now enabled on Windows 11 via PowerShell.

Video Walkthrough for Enabling IIS using CMD and PowerShell

Take away

This approach of enabling IIS on Windows 11 and Windows Server Editions using Command Prompt, and PowerShell is beneficial for web developers for automation, remote management, and streamlined setups. If you have any queries, kindly let us know in the comment section. For more interesting articles, stay tuned to Winsides.com. Happy Coding! Peace out!

Tags:

Command PromptHow to Enable in Windows 11IISInternet Information ServicesPowerShell Commandswindows 11Windows Features
Vigneshwaran Vijayakumar
Author

Vigneshwaran Vijayakumar

Hello, I'm Vigneshwaran, the founder, owner, and author of WinSides.Com. With nearly a decade of experience in blogging across various domains and specializing in Windows-related tutorials for over five years, I bring a wealth of knowledge and expertise to WinSides.Com

Follow Me
Other Articles
Enable Internet Printing Client on Windows 11
Previous

Quick way to Enable Internet Printing Client on Windows 11

Enable WSL in Windows 11
Next

How to Enable Windows Subsystem for Linux in Windows 11

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • How to Install and Run X Server in Windows 11?
  • How to Enable Client for NFS in Windows 11?
  • 5+ Easy Methods to Find/Search Video Files Only in Windows 11!
  • How to Enable TFTP Client in Windows 11?
  • Windows 10 officially ends on October 14, 2025
  1. Vigneshwaran Vijayakumar
    Vigneshwaran Vijayakumar on How to Enable Windows PowerShell 2.0 in Windows 11?October 5, 2025

    Hello Mr. Mohamad El-Kheir, Thank you for contacting us. Microsoft has removed PowerShell version 2.0 completely from Windows 11 24H2…

  2. Avatar of Mohamad El-Kheir
    Mohamad El-Kheir on How to Enable Windows PowerShell 2.0 in Windows 11?October 5, 2025

    i have a MSI laptop with windows 11 Home Installed on it. how to install powershell v2.0 on it

  3. Vigneshwaran Vijayakumar
    Vigneshwaran Vijayakumar on DxDiag Windows 11 – What is it & How to use it for Troubleshooting?August 14, 2025

    Hey Myla Shannon Thank you for your valuable feedback. We are delighted to hear your compliment and excited to know…

  4. Avatar of Myla Shannon
    Myla Shannon on DxDiag Windows 11 – What is it & How to use it for Troubleshooting?August 14, 2025

    This content is incredibly informative.

  5. Avatar of seven
    seven on How to Enable IIS [Internet Information Services] in Windows 11?July 29, 2025

    I found this post very helpful.

  • About us
  • What’s New?!
  • Guest Posts on Winsides.com – Terms and Conditions
  • Publication Sitemap
  • Careers
  • Authors
  • Why Trust Winsides.com?
  • Content Removal Request
  • Terms of Use
  • Disclaimer
  • Contact us
Copyright 2024-2026 - Winsides.com. All rights reserved.