TechBuzzPro

How to Turn Off IIS in Windows 11: Step-by-Step

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To turn off IIS in Windows 11, open Settings > Apps > Optional features, find Internet Information Services (IIS) in the list, select it, and click Uninstall. That removes the IIS role and its management tools. If you only want to stop the service temporarily, you can instead open Services and stop the World Wide Web Publishing Service. This guide covers both approaches, plus what to check if IIS refuses to go away.

What You'll Need

  • Administrator rights on the Windows 11 PC (you'll be prompted for elevation).
  • A few minutes of free time; no reboot is required for the removal itself, but a restart is a good idea afterward.
  • If you have websites or apps running on IIS, back up their configuration and content first. Removing IIS deletes the role but leaves your inetpub folder in place, so files are not automatically erased. However, any sites you configured will stop working.

Step-by-Step

  1. Open Settings. Press the Windows key, type Settings, and press Enter. Alternatively, click the Start button and choose Settings (the gear icon).
  2. Go to Apps > Optional features. In the left-hand menu, click Apps, then click Optional features in the main pane. Menu labels can differ slightly by Windows 11 version and region, but this path is current for the standard release.
  3. Find Internet Information Services. Scroll through the list of installed features. IIS may appear as Internet Information Services or as Internet Information Services Hostable Web Core. If you see both, you will need to remove both to fully turn off IIS.
  4. Select IIS and click Uninstall. Click the entry to expand it, then click the Uninstall button. Confirm the prompt. Windows will remove the IIS role and its management console.
  5. Wait for the removal to finish. The progress bar may take a minute or two. Do not close Settings while it runs.
  6. Restart your PC. A restart is not always mandatory, but it ensures all IIS-related services and drivers are unloaded. Save your work and reboot.
  7. Verify IIS is gone. Open a browser and go to http://localhost. If IIS was the only web server, you should see a connection error or a blank page instead of the IIS welcome screen. You can also open Services (press Windows+R, type services.msc, press Enter) and check that World Wide Web Publishing Service is no longer listed.

If you only need to stop IIS temporarily, for example to free port 80 for another app, you can stop the service instead of uninstalling it. Open Services, right-click World Wide Web Publishing Service, and choose Stop. To prevent it from starting again at boot, double-click the service, set Startup type to Manual or Disabled, and click OK. This leaves IIS installed but inactive.

Common Mistakes

  • Uninstalling only one IIS entry. Windows 11 may list both Internet Information Services and Internet Information Services Hostable Web Core. Removing just one can leave parts of IIS behind. Remove both if present.
  • Confusing IIS with a website. IIS is the web server role. Your actual website files live in a folder such as C:\inetpub\wwwroot. Uninstalling IIS does not delete those files, but the site will stop serving. Back up anything you need before you remove the role.
  • Stopping the service but expecting a full removal. Stopping the World Wide Web Publishing Service only halts the running service. The IIS role and management tools remain installed and may restart after a reboot if the startup type is Automatic.
  • Forgetting dependent services. IIS relies on services such as Windows Process Activation Service (WAS). If you disable or stop WAS manually, IIS may fail to start later. Uninstalling the role through Optional features handles these dependencies cleanly.
  • Not checking for other web servers. If you have Apache, Nginx, or another server bound to port 80, stopping IIS may not free the port if another service is using it. Use netstat -ano | findstr :80 in Command Prompt to see what is listening.

Tips

  • Before uninstalling, note any IIS features you enabled (such as ASP.NET, FTP Server, or URL Rewrite). You will need to reinstall them if you ever turn IIS back on.
  • If you use IIS for local development, consider stopping the service instead of removing the role. That way you can start it again quickly when needed.
  • After removal, check that no leftover shortcuts to IIS Manager remain in the Start menu or Administrative Tools. You can delete them manually if they bother you.
  • If you plan to use another web server on port 80, make sure IIS is fully stopped or uninstalled; otherwise you may get a port conflict error.
  • Keep your Windows 11 system updated. Optional features lists and menu labels can change slightly between builds, so if a step looks different, look for the closest matching label.

Troubleshooting

If IIS does not disappear after uninstalling, or if you cannot find it in Optional features, try these steps in order:

  1. Check Windows Features. Open the classic Turn Windows features on or off dialog (press Windows+R, type optionalfeatures, press Enter). Look for Internet Information Services and clear its checkbox, then click OK. This is an alternative path to the same removal.
  2. Use PowerShell as administrator. Run Get-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole to check the state. To disable it, run Disable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole. Be careful: this command removes the IIS role and may require a restart.
  3. Restart the PC and try again. Some files may be locked by a running process. A restart clears those locks.
  4. Check for pending updates. If Windows is in the middle of an update, optional feature changes can fail. Finish updates, reboot, then retry.
  5. Look for third-party installers. Some development tools install IIS as a dependency. If IIS reappears after removal, check whether a tool is reinstalling it. You may need to change that tool's settings or uninstall it.
  6. Run the System File Checker. If the Optional features list is corrupted, open Command Prompt as administrator and run sfc /scannow. This can repair Windows components that manage features.

If none of these work, consider using a restore point or resetting Windows, but only after backing up your data. Resetting Windows removes installed programs and can delete files, so read the options carefully.

Frequently Asked Questions

Does uninstalling IIS delete my website files?

No. Uninstalling the IIS role removes the web server and its management tools, but the files in C:\inetpub and any custom site folders remain on disk. You can back them up or delete them manually afterward.

Can I turn IIS back on later?

Yes. Return to Settings > Apps > Optional features, click Add a feature, search for Internet Information Services, select it, and install. You will need to reconfigure your sites and settings.

What is the difference between stopping IIS and uninstalling it?

Stopping the World Wide Web Publishing Service halts the running web server but leaves IIS installed. Uninstalling removes the role entirely, including IIS Manager and related components. Stopping is reversible with a click; uninstalling requires reinstalling the feature.

Will turning off IIS affect other Windows features?

IIS is a standalone role. Removing it should not affect unrelated features like Hyper-V or Windows Sandbox, but if another app depends on IIS, that app may stop working. Check your installed software before removing IIS.

Why does IIS still appear in Services after uninstalling?

Some IIS-related services may remain until you restart. If they persist after a reboot, the uninstall may not have completed. Re-run the removal or use the Windows Features dialog to ensure all IIS components are cleared.

Is it safe to disable IIS on a work computer?

Only if you are sure no business applications rely on it. On managed devices, check with your IT administrator first; removing IIS could break internal tools or websites hosted locally.