Enable Internet Information Services using Command Prompt (CMD)

Command to Enable IIS on Windows 11 & Windows Server

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.

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

Open Command Prompt as Administrator
Open Command Prompt as Administrator
Command to Enable IIS using CMD
Command to Enable IIS using CMD
System Enables the required Feature
The system enables the required Feature
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

Enable Internet Information Services using PowerShell

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

Run PowerShell as Administrator
Run PowerShell as Administrator
PowerShell is installing IIS
PowerShell is installing IIS
Choose whether you want to restart your system or not
Choose whether you want to restart your system or not
Restart needed
Restart needed

Video Walkthrough for Enabling IIS using CMD and PowerShell

Enable IIS using Command Prompt and Powershell [For Windows 11 & Windows Server Editions]

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!

Exit mobile version