Restore Windows Services to Default State
In this article
Windows services run in the background to keep your system functional, from networking to printing to security. Over time, third-party software or manual tweaks can change their startup types or disable them entirely, which can cause errors, slow boot times, or broken features. Restoring services to their default state resets the startup type (Automatic, Manual, or Disabled) for all built-in Windows services, which can fix many system issues without reinstalling Windows. Before you start, make sure you have administrator access to your PC and consider creating a system restore point so you can roll back if anything goes wrong.
What You'll Need
- A Windows PC (Windows 10 or Windows 11) with administrator privileges.
- A backup of your current service configuration (optional but recommended).
- An internet connection if you need to download the official Microsoft policy files.
Step-by-Step
- Create a system restore point (recommended). Press Win + S, type "Create a restore point," and select it. In the System Properties window, click Create, give it a name, and wait for it to finish. This lets you undo the changes if something goes wrong.
- Open an elevated Command Prompt. Press Win + S, type "cmd," right-click "Command Prompt," and choose Run as administrator. Confirm the UAC prompt.
- Export your current service configuration (backup). In the Command Prompt, type the following and press Enter:
sc query type= service state= all > "%USERPROFILE%\Desktop\services_backup.txt". This saves a list of all services and their states to a text file on your desktop. You can also usereg export HKLM\SYSTEM\CurrentControlSet\Services "%USERPROFILE%\Desktop\services_backup.reg"to back up the registry keys, but the text file is enough for reference. - Download the official Windows service policy files. Microsoft provides a set of
.txtfiles that list the default startup type for each service on a given Windows version. Search for "Microsoft Windows service default startup type" or go to the Microsoft Download Center and look for "Windows 10/11 Service Policy" or "Security Compliance Toolkit." Download the appropriate file for your Windows version (e.g., Windows 10 22H2 or Windows 11 23H2). - Extract the policy file. The downloaded archive contains a folder with files like
services.txtorservice_defaults.txt. Extract it to a folder, e.g.,C:\service_defaults. - Open the policy file and note the default values. Open the
services.txtfile in Notepad. It lists each service name and its default startup type (e.g.,Automatic,Manual,Disabled). You'll use this as your reference. - Reset each service's startup type manually (method 1). For each service you want to reset, use the
sc configcommand. For example, to set the Print Spooler to Automatic, type:sc config Spooler start= auto. ReplaceSpoolerwith the service name (not the display name) andautowithdemandfor Manual ordisabledfor Disabled. Note the space after the equals sign. - Reset services using a batch file (method 2, faster). Create a new text file on your desktop, name it
reset_services.bat, and edit it with Notepad. For each service, add a line likesc config ServiceName start= auto. Save the file, right-click it, and choose Run as administrator. This will apply all changes at once. - Reboot your PC. After applying the changes, restart your computer to ensure all services start with the new settings.
- Verify the changes. After reboot, open the Services app (press Win + R, type
services.msc, press Enter). Check a few services you reset to confirm they show the correct startup type.
Common Mistakes
- Using the display name instead of the service name. The
sc configcommand requires the internal service name (e.g.,Spooler), not the display name ("Print Spooler"). You can find the service name in the Services app by double-clicking a service and looking at the "Service name" field. - Forgetting the space after the equals sign. The syntax is
start= autowith a space between the equals sign and the value. Omitting it causes an error. - Resetting services that are not in the default list. Some services are added by third-party software. The Microsoft policy file only covers built-in services. Do not reset services that aren't listed, as you might break that software.
- Not running Command Prompt as administrator. Without admin rights, the
sc configcommand will fail with "Access is denied." - Using the wrong Windows version's policy file. Defaults can differ between Windows 10 and Windows 11, and even between feature updates. Using the wrong file can set a service to an incorrect state.
Tips
- Use the Services app for a single service. If you only need to reset one or two services, open
services.msc, double-click the service, set the startup type to the desired value, and click OK. No command line needed. - Check the service dependencies. Some services depend on others. If you set a service to Manual but its dependency is Disabled, it won't start. Always verify dependencies in the service's Properties dialog.
- Export your current configuration before making changes. The backup file helps you revert if you later realize you needed a custom setting.
- Use the Security Compliance Toolkit. Microsoft's toolkit includes the service policy files and is the most reliable source for defaults. It's updated regularly.
- Consider using the "Safe mode" if a service prevents boot. If a service is misconfigured and causes boot issues, boot into Safe Mode to reset it.
Troubleshooting
- "Access is denied" error. This means you didn't run Command Prompt as administrator. Close and reopen it with admin rights.
- Service won't start after reset. Check the service's dependencies. Open Services app, double-click the service, go to the Dependencies tab. Ensure all dependencies are enabled and set to their correct startup type. Also check the Windows Event Viewer for error logs.
- System instability after reset. If your PC becomes unstable, use the system restore point you created in Step 1. Boot into Safe Mode if necessary, then run System Restore.
- Can't find the service in the policy file. If a service is not listed, it's likely a third-party service. Leave it as is, or set it to its original state using your backup.
- Batch file doesn't work. Ensure the batch file is saved with ANSI encoding, not UTF-8 with BOM. Also, run it as administrator. If it fails on a specific line, check for typos in the service name or the space after the equals sign.
- Services reset but still not working. Some services require a reboot to take effect. Also, the service may be set to "Manual" but not started because it's triggered by an event. Check if it starts when you try to use the related feature.
Frequently Asked Questions
Will resetting services to default delete my files?
No. This only changes the startup type of services. It does not affect your personal files or installed programs.
Can I reset all services at once with a single command?
There is no built-in command to reset all services automatically. You must use the policy file and apply each service's default manually, or create a batch file as described above.
Is it safe to reset all services to default?
Generally yes, for built-in Windows services. However, some third-party software may rely on custom service settings. Always back up your current configuration first.
What is the difference between Automatic and Automatic (Delayed Start)?
Automatic starts the service at boot. Automatic (Delayed Start) starts it shortly after boot to improve boot performance. The policy file lists the default type; if it says "Automatic," you can set it to auto, but if it says "Automatic (Delayed Start)", you should use sc config ServiceName start= delayed-auto.
How do I find the service name for a service?
Open the Services app (services.msc), double-click the service, and look at the "Service name" field. It's usually a short name like Spooler or WSearch.
Will this fix a service that is stuck in "Starting" or "Stopping"?
Resetting the startup type alone may not fix a stuck service. You may need to stop the service manually, then set it to Manual, restart your PC, and then set it back to Automatic. If the issue persists, check for corrupt system files using sfc /scannow.