You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows 10系统IIS默认开机停止服务的设置方法咨询

Absolutely! You can absolutely configure IIS to stay stopped by default (so it doesn't auto-start on boot) — this is a great move to save system resources on your laptop. Let’s walk through exactly how to do this, whether you’re installing IIS for the first time or tweaking an existing setup.

Setting IIS to Not Auto-Start When Installing (Windows 10)

When you first install IIS, it’s set to start automatically by default, but you can change that right after installation (or even adjust it during setup if you use command-line tools). Here’s the easiest way:

  • Press Win + R, type services.msc, and hit Enter to open the Services console.
  • Scroll to find World Wide Web Publishing Service (W3SVC) — this is the core IIS service that handles web traffic. You’ll also want to check IIS Admin Service (IISADMIN), which W3SVC depends on.
  • Right-click each service, select Properties.
  • In the Startup type dropdown, pick either:
    • Disabled: The service will never start automatically, even if another app tries to trigger it. You’ll have to start it manually whenever you need IIS.
    • Manual: The service won’t auto-start on boot, but can be launched manually or by a dependent service if needed (ideal if you use IIS occasionally).
  • Click Apply then OK to save the changes.
Disabling/ Stopping IIS on an Existing Windows 10 Installation

If IIS is already up and running, here are three straightforward ways to shut it down and prevent auto-start:

Method 1: Services Console (Graphical)

Same steps as above, but first click the Stop button in the service’s Properties window to halt it immediately, then set the startup type to Disabled or Manual.

Method 2: Command Line (Admin)

For folks who prefer typing commands over clicking:

  • Open PowerShell or Command Prompt as Administrator.
  • First, stop the running services:
    net stop w3svc
    net stop iisadmin
    
  • Then set them to disabled so they don’t start on boot:
    sc config w3svc start= disabled
    sc config iisadmin start= disabled
    

    Pro tip: Don’t forget the space after start= — that’s required for the sc command to work correctly.

Method 3: IIS Manager

  • Open IIS Manager (search for "IIS" in the Start Menu or Control Panel).
  • In the left-hand Connections pane, right-click your server name and select Stop to immediately shut down IIS.
  • Note: IIS Manager doesn’t let you change the startup type directly — you’ll still need to use the Services console for that part.
Extra Tips to Save More Resources
  • If you installed IIS components like FTP, look for FTP Publishing Service in the Services list and disable that too if you don’t use it.
  • If you only need IIS occasionally, setting startup type to Manual is a happy medium: you can start the services quickly when you need them, then stop them afterward to free up RAM and CPU.

内容的提问来源于stack exchange,提问作者beari7

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:27:04