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.
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, typeservices.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.
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= disabledPro tip: Don’t forget the space after
start=— that’s required for thesccommand 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.
- 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

