2 Easy Methods To Enable and Disable IIS on Windows 11

Posted on

2 Easy Methods To Enable and Disable IIS on Windows 11

2 Easy Methods To Enable and Disable IIS on Windows 11

This guide will teach you 2 Methods to Enable and Disable IIS on Windows 11. You can use the Windows features GUI or the PowerShell Command-Line to enable IIS. IIS provides different web server functions. You can easily follow the steps provided by the Orcacore team to Enable and Disable IIS on Windows 11.

At this point, you can log in to your Windows Client and use one of the following methods to Enable and Disable Microsoft IIS on Windows 11:

You can also visit the Video Tutorial Here:

Method 1 – Enable IIS in Windows 11 From GUI

In this step, you need to open your Windows features. To do this, from your search bar, search for features and click on “Turn Windows features on or off”.

Open Windows 11 Features

From there, check the boxes next to “Internet Information Services, Web Management Tools and World Wide Web Services”. This will also enable the IIS Management Console including Application features, Common HTTP Features, Health Diagnosis, Performance, and Security Features. Then, click OK.

Turn on IIS in Windows 11

Wait until your installation is completed.

Run IIS Manager in Windows 11

Now you can run your IIS manager. From your Search bar, search for IIS and click on “Internet Information Services (IIS) Manager”.

Open Internet Information Services (IIS) Manager

Now you can see your IIS manager in Windows 11.

IIS Manager Windows 11

Check the IIS Version

To verify your IIS version, you can click on the Help tab and click on About Internet Information Service.

About IIS

Then, you will have your IIS version installed on your Windows 11.

IIS Version Windows 11

Disable IIS Manager in Windows 11 from GUI

If you plan to disable the IIS manager, you can simply, search for features again and click on “Turn Windows features on or off”. From there, uncheck the boxes next to “Internet Information Services, Web Management Tools and World Wide Web Services”. Then, click OK.

Finally, restart your system to apply the changes. With this option, you will disable your IIS manager in Windows 11.

Method 2 – Enable IIS from PowerShell in Windows 11

Those who prefer to use the command line interface instead of using GUI can use PowerShell to enable the IIS manager. To do this, open PowerShell as an administrator and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole, IIS-WebServer, IIS-CommonHttpFeatures, IIS-ManagementConsole, IIS-HttpErrors, IIS-HttpRedirect, IIS-WindowsAuthentication, IIS-StaticContent, IIS-DefaultDocument, IIS-HttpCompressionStatic, IIS-DirectoryBrowsing

Wait until your IIS installation is completed.

turn on IIS from PowerShell

In your output, you will see:

Install IIS from PowerShell

In this way, you can simply turn on IIS on Windows 11 from PowerShell.

Disable IIS Manager From PowerShell

If you plan to disable IIS from PowerShell, you can run the command below:

Disable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole, IIS-WebServer

Wait until the process is completed. Then, you will need to restart your system. Press Y to continue.

Disabling IIS from PowerShell

That’s it, you are done. Now you know 2 Easy Methods To Enable and Disable IIS on Windows 11.

Conclusion

At this point, you have learned to Enable and Disable IIS on Windows 11 from GUI and PowerShell Command-Line. Hope you enjoy it. Also, you may like to read the following articles:

2 Ways To Test Hard Disk Speed in Windows

Enable Network Discovery and File Sharing on Windows

FAQs

How do I enable IIS on Windows 11?

You can enable IIS by navigating to the “Turn Windows features on or off” menu, checking the box next to “Internet Information Services,” and clicking OK. IIS will then install and be enabled.

Can I install IIS via PowerShell on Windows 11?

Yes, you can install IIS using PowerShell by following the guide steps above (Enable and Disable IIS on Windows 11).

How do I verify that IIS is installed and running on Windows 11?

You can verify IIS installation by opening a web browser and typing http://localhost in the address bar. If IIS is running, you’ll see the default IIS welcome page.

Alternative Methods to Enable and Disable IIS on Windows 11

While the GUI and PowerShell methods are effective, other approaches can be used to manage IIS on Windows 11. Here are two alternative methods, offering flexibility and integration with other development tools. These are 2 Easy Methods To Enable and Disable IIS on Windows 11.

Method 3: Using Deployment Image Servicing and Management (DISM)

DISM is a command-line tool used to service Windows images, including enabling or disabling features. It provides a more granular control over the installation process and can be scripted for automated deployments. This is another way to Enable and Disable IIS on Windows 11.

Enabling IIS with DISM:

  1. Open Command Prompt as an administrator.
  2. Use the following command to enable IIS:
DISM /Online /Enable-Feature /FeatureName:IIS-WebServerRole /All

The /Online switch specifies that you are working with the currently running operating system. /Enable-Feature tells DISM to enable the specified feature. /FeatureName:IIS-WebServerRole identifies the IIS web server role. The /All switch enables all parent features and all sub-features of the specified parent feature. This ensures that all necessary components for IIS are installed.

Disabling IIS with DISM:

  1. Open Command Prompt as an administrator.
  2. Use the following command to disable IIS:
DISM /Online /Disable-Feature /FeatureName:IIS-WebServerRole

The /Disable-Feature switch tells DISM to disable the specified feature.

Advantages of using DISM:

  • Scriptability: DISM commands can be easily incorporated into batch scripts or automated deployment processes.
  • Granular Control: DISM allows for more specific control over which IIS features are enabled or disabled.

Disadvantages of using DISM:

  • Complexity: DISM commands can be more complex than the GUI or PowerShell equivalents.
  • Less User-Friendly: Requires a deeper understanding of Windows features and command-line syntax.

Method 4: Using the Server Manager GUI (If Available)

While Server Manager is typically associated with Windows Server editions, it might be available or installable on some Windows 11 Pro editions. If Server Manager is available, it provides a centralized interface for managing server roles and features, including IIS. This is another way to Enable and Disable IIS on Windows 11.

Enabling IIS with Server Manager:

  1. Open Server Manager.
  2. Click "Add roles and features."
  3. Follow the wizard, selecting "Role-based or feature-based installation."
  4. Select your server (usually the local machine).
  5. Choose "Web Server (IIS)" from the list of roles.
  6. Add any required features.
  7. Confirm your selections and click "Install."

Disabling IIS with Server Manager:

  1. Open Server Manager.
  2. Click "Manage" -> "Remove Roles and Features."
  3. Follow the wizard, deselecting "Web Server (IIS)."
  4. Confirm your selections and click "Remove."

Advantages of using Server Manager:

  • Centralized Management: Provides a single interface for managing server roles and features.
  • User-Friendly (GUI): Offers a visual interface for managing IIS.

Disadvantages of using Server Manager:

  • Availability: Server Manager is not available on all Windows 11 editions (primarily Pro and Enterprise).
  • Overhead: Server Manager can add some overhead to the system.

In conclusion, while the original article focuses on the "Turn Windows features on or off" GUI and PowerShell methods, DISM and Server Manager (if available) provide alternative routes for enabling and disabling IIS on Windows 11. The best method depends on your specific needs and technical expertise.

Leave a Reply

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