10 Commands to Speed Up Windows 11 or 10: Step by Step
The 10 built-in commands that make Windows faster — what each one really does, what changes between HDD and SSD, and what to do when one of them doesn’t work.
Straight to the point:
- First of all: create a restore point — if you don’t like a change, you can roll back in minutes.
- The commands that make the biggest difference:
taskmgr(startup apps),cleanmgr(cleanup) andsfc /scannowafter DISM (repair). - SSD: it’s never defragmented — but
defrag C: /Ois safe, because on an SSD it only runs TRIM. - The menu tweak is
MenuShowDelayinHKCU\Control Panel\Desktop, as a text value — many guides point to the wrong key. - If your PC has a mechanical hard drive or 4 GB of RAM, no command works miracles — the fix is hardware.
- Introduction
- Before You Start: Restore Point and an Admin Terminal
- 1. Unnecessary Services — services.msc
- 2. Disk Cleanup — cleanmgr
- 3. Optimize the Drive (HDD and SSD) — defrag C: /O
- 4. Visual Effects — SystemPropertiesPerformance
- 5. Up-to-Date Drivers — devmgmt.msc
- 6. Startup Apps — taskmgr
- 7. Faster Menus — MenuShowDelay
- 8. Power Plan — powercfg
- 9. Repair System Files — DISM + sfc /scannow
- 10. Fast Startup — powercfg /h on
- Bonus: Update All Your Apps at Once — winget
- What Does NOT Make Windows Faster
- Summary Table of the 10 Commands
- What’s the Recommended Order?
- Alternatives Table
- When These Commands Won’t Help
- Quick Glossary
- Frequently Asked Questions
⚡ Why Optimize Windows 11 or 10?
A freshly installed Windows is usually fast. Over time, though, it piles up apps that launch with the system, services you never use, gigabytes of temporary files, outdated drivers and, sometimes, system files damaged by a power cut or an interrupted update. None of this happens at once: the PC slows down little by little, until the day that turning it on and opening the browser becomes a test of patience.
The good news is that Windows itself ships with the tools to fix most of it. The 10 commands in this guide are built in — they work on Windows 11 and 10, need no downloads and can be undone. For each one you’ll see the command, the steps, what it really changes and when it isn’t worth it.

An honest note before we start: software tuning has limits. If your computer still runs on a mechanical hard drive or has little memory, the commands help, but the change that truly transforms the PC is hardware — more on that in “When these commands won’t help”.
🛟 Before You Start: Restore Point and an Admin Terminal
Several commands in this guide change system settings. To be able to undo them with one click, create a restore point first. Open the terminal as administrator — press Win + X and choose Terminal (Admin) on Windows 11 or Windows PowerShell (Admin) on Windows 10 — and run:
Checkpoint-Computer -Description "Before optimization" -RestorePointType MODIFY_SETTINGSIf you get a warning that System Protection is off, turn it on in sysdm.cpl → System Protection tab → select drive C: → Configure → Turn on system protection. And if Windows says a restore point was already created in the last 24 hours, that’s fine: it will use that one.
To go back to that point later, follow how to restore Windows without losing files. If you’d rather have a full copy of everything, see the Windows backup without installing anything.
🛑 1. Unnecessary Services — services.msc
| Field | Details |
|---|---|
| Command | services.msc |
| Where to type it | Win + R (Run) |
| Expected gain | Small to moderate — larger on PCs with little RAM |
Services are programs Windows keeps running in the background. Most are needed, but some only matter if you use a specific feature. In the window that opens, double-click the service, change the Startup type and click OK. Prefer Manual over Disabled: in manual mode the service still starts by itself if a program needs it.
| Service | Can be set to | Only if… |
|---|---|---|
| Fax | Disabled | You don’t use fax (almost nobody does) |
| Print Spooler | Manual | You have no printer — with it off, nothing prints |
| Connected User Experiences and Telemetry | Manual | Always fine — it reduces diagnostic data uploads |
| Services with “Xbox” in the name | Manual | You don’t play on the PC through the Xbox app/Game Pass |
| SysMain | Keep automatic | Only try disabling it on an old HDD PC stuck at 100% disk |
| Windows Search | Keep automatic | Disabling it makes Start menu and File Explorer search slow |
🧹 2. Disk Cleanup — cleanmgr
| Field | Details |
|---|---|
| Command | cleanmgr |
| Where to type it | Win + R or the Start menu search |
| Expected gain | From a few to dozens of gigabytes freed |
- Run the command and choose drive C:.
- Click Clean up system files first — that’s where the big items show up, like leftovers from Windows updates.
- Check Temporary files, Windows Update Cleanup, Delivery Optimization Files and Recycle Bin (make sure there’s nothing you want in it first).
- Click OK and then Delete Files.
On Windows 11, the same cleanup lives in Settings → System → Storage → Cleanup recommendations, and Storage Sense does it automatically from time to time. A nearly full drive slows any Windows down: keep at least 15% to 20% free. There’s a whole guide on this in how to clean up Windows with one command.
💽 3. Optimize the Drive (HDD and SSD) — defrag C: /O
| Field | Details |
|---|---|
| Command | defrag C: /O |
| Where to type it | Terminal as administrator |
| Expected gain | Moderate on an HDD; preventive maintenance on an SSD |
A lot of guides tell you to skip this step if you have an SSD — and that’s a mistake. The /O switch tells Windows to run the right optimization for each type of drive:
- Mechanical hard drive (HDD): it defragments — it puts the scattered pieces of files back together, so the drive reads faster.
- SSD: it does not defragment. It runs TRIM, which tells the SSD which blocks are free. That’s good for speed and for lifespan.
Just want to check if it’s needed? Use defrag C: /A (analysis only). To confirm TRIM is on for your SSD:
fsutil behavior query DisableDeleteNotifyIf the result shows DisableDeleteNotify = 0, TRIM is active. Windows already schedules this optimization every week — check it in dfrgui (Optimize Drives). To find out whether your drive is an HDD or SSD and how healthy it is, see the 4 commands that show your PC’s real health.

🎨 4. Visual Effects — SystemPropertiesPerformance
| Field | Details |
|---|---|
| Command | SystemPropertiesPerformance |
| Classic shortcut | sysdm.cpl → Advanced → Performance → Settings |
| Expected gain | Noticeable on PCs with weak integrated graphics or little RAM |
The command opens the Performance Options window directly. Choose Adjust for best performance and, so Windows doesn’t look too rough, turn back on just these two options:
- Show thumbnails instead of icons (otherwise photos turn into generic icons);
- Smooth edges of screen fonts (otherwise text looks jagged).
Click Apply. On Windows 11 you can also go to Settings → Accessibility → Visual effects and turn off Transparency effects and Animation effects. On a PC with a dedicated graphics card the gain is small — in that case, feel free to keep the eye candy.
🔄 5. Up-to-Date Drivers — devmgmt.msc
| Field | Details |
|---|---|
| Command | devmgmt.msc |
| Where to type it | Win + R |
| Expected gain | Big when a device is on a generic or faulty driver; none when everything is already fine |
In Device Manager, look for items with a yellow triangle — those are devices with no driver or with a problem. Right-click → Update driver → Search automatically for drivers.
A detail few people know: that button almost always answers “the best drivers for your device are already installed”, because it only searches inside Windows itself. Newer drivers usually live in Settings → Windows Update → Advanced options → Optional updates, or on the manufacturer’s website (especially for the graphics card). The full walkthrough, with no paid software, is in how to install drivers without paid programs.
🚀 6. Startup Apps — taskmgr
| Field | Details |
|---|---|
| Command | taskmgr |
| Shortcut | Ctrl + Shift + Esc |
| Expected gain | The biggest on the list if you wait minutes after turning the PC on |
In practice, this is the command that makes the most difference. In Task Manager, open the Startup apps tab (on Windows 10, Startup) and click the Startup impact column to sort it. Right-click the High impact apps you don’t need the moment the PC turns on — updaters, game launchers, cloud apps you open when you want — and choose Disable.
Keep your antivirus, audio and touchpad drivers and whatever you really use all the time. Disabling an app here doesn’t uninstall anything: it still opens normally when you click it.
A trick to measure before and after: in the top-right corner of that same tab you’ll see the Last BIOS time, and the time until the desktop is usable you can measure with a clock. More details in how to disable startup programs.
🔋 8. Power Plan — powercfg
| Field | Details |
|---|---|
| List plans | powercfg /list |
| Turn on High performance | powercfg /setactive SCHEME_MIN |
| Classic window | powercfg.cpl |
The power plan decides whether the processor favors saving energy or speed. On a desktop, High performance is a good choice. powercfg /list shows the plans and marks the active one with an asterisk; SCHEME_MIN is the internal name of High performance (minimum power saving).
On many Windows 11 laptops, only the Balanced plan shows up. You can try to recreate High performance with:
powercfg -duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635cIf it still doesn’t appear (it happens on laptops with Modern Standby), use the Windows 11 way: Settings → System → Power & battery → Power mode → Best performance. On a laptop, remember that maximum performance means more heat and less battery — use it when plugged in.
🛡️ 9. Repair System Files — DISM + sfc /scannow
| Order | Command | What it does |
|---|---|---|
| 1st | DISM /Online /Cleanup-Image /RestoreHealth | Repairs the store of original Windows files |
| 2nd | sfc /scannow | Replaces corrupted system files using that store |
Both run in the Terminal as administrator, one after the other. DISM comes first because SFC uses the store that DISM repairs — if the store is damaged, SFC alone can’t fix anything. Together they take 20 to 40 minutes, and DISM sometimes looks stuck at 20% or 62.3%: that’s normal, just wait.

This repair won’t speed up a healthy Windows, but it fixes slowdowns and freezes caused by corrupted files. Every message they show, and what to do when the repair fails, is in the full guide to SFC and DISM before reinstalling.
⏩ 10. Fast Startup — powercfg /h on
| Field | Details |
|---|---|
| Command | powercfg /h on |
| Where to type it | Terminal as administrator |
| Expected gain | Big on an HDD; small on an SSD |
The command turns on hibernation, which fast startup is built on. Then check that fast startup is enabled:
- Run
powercfg.cpland click Choose what the power buttons do. - Click Change settings that are currently unavailable.
- Check Turn on fast startup (recommended) and save.
How it works: when you Shut down, Windows saves the system core to the hiberfil.sys file and, on the next boot, loads it from there. That’s why Restart still does a full boot — and that’s the one you should use after updates.
powercfg /h off. If you run two systems, see more in Windows and Linux dual boot.📦 Bonus: Update All Your Apps at Once — winget
Outdated apps make the PC slower and more vulnerable. Up-to-date Windows 11 and 10 include winget, which updates almost everything with one command:
winget upgrade --all --accept-source-agreements --accept-package-agreementsIf you’d like to just see what has an update first, run winget upgrade. The full walkthrough, with the most common errors, is in update all your apps with one command. And to keep Windows itself current, check whether your Windows is really up to date.
🚫 What Does NOT Make Windows Faster
| Tip you’ll find online | The truth |
|---|---|
| Using a registry cleaner | No measurable gain, and it can delete keys that are needed; Microsoft itself doesn’t recommend them |
| Installing a program that “frees up RAM” | Windows uses free memory as a cache on purpose; “freeing” it just forces everything to load again |
| Raising the number of processors in msconfig | It speeds up nothing — Windows already uses every core. I explain it in the msconfig myth |
| Deleting the Prefetch folder | It makes apps load slower next time: Windows rebuilds everything |
| Turning off the antivirus | The gain is small and the risk is huge |
| Never optimizing the SSD | Defragmenting, no — but TRIM (defrag /O) is exactly what keeps an SSD fast |
On memory, it’s also worth reading why more RAM doesn’t always make the PC faster.
📊 Summary Table of the 10 Commands
| # | Command | What it does | Needs admin? |
|---|---|---|---|
| 1 | services.msc | Adjusts background services | Yes (to save) |
| 2 | cleanmgr | Cleans temporary files and update leftovers | For “system files”, yes |
| 3 | defrag C: /O | Defragments an HDD / runs TRIM on an SSD | Yes |
| 4 | SystemPropertiesPerformance | Reduces visual effects | No |
| 5 | devmgmt.msc | Shows and updates drivers | To update, yes |
| 6 | taskmgr | Disables startup apps | No |
| 7 | reg add "HKCU\Control Panel\Desktop" /v MenuShowDelay /t REG_SZ /d 100 /f | Submenus open faster | No |
| 8 | powercfg /setactive SCHEME_MIN | Turns on the High performance plan | No |
| 9 | sfc /scannow | Repairs system files (after DISM) | Yes |
| 10 | powercfg /h on | Turns on hibernation / fast startup | Yes |
📅 What’s the Recommended Order?
| Stage | What to do | Time |
|---|---|---|
| 1 — Safety | Restore point | 2 min |
| 2 — Repair | DISM, then sfc /scannow | 20 to 40 min |
| 3 — Cleanup | cleanmgr with “Clean up system files” | 5 to 15 min |
| 4 — Startup | taskmgr → Startup apps | 5 min |
| 5 — Tweaks | Services, drivers, power, visual effects, MenuShowDelay | 15 min |
| 6 — Drive | defrag C: /O and restart | 5 to 60 min (HDDs take longer) |
Restart at the end and use the PC normally for a day or two before judging the result — some improvements, like the startup cache, only show up after a few boots.
🔁 Alternatives Table
| If this fails or doesn’t exist… | Alternative | Note |
|---|---|---|
services.msc | Set-Service -Name Fax -StartupType Manual | PowerShell (admin); replace Fax with the service name |
cleanmgr | Settings → System → Storage | Cleanup recommendations and Storage Sense |
defrag C: /O | Optimize-Volume -DriveLetter C -ReTrim -Verbose | For SSDs; on an HDD use -Defrag instead of -ReTrim |
SystemPropertiesPerformance | sysdm.cpl | Advanced tab → Performance → Settings |
devmgmt.msc | Windows Update → Optional updates | Or the PC/motherboard maker’s website |
taskmgr | Settings → Apps → Startup | Same list, with on/off toggles |
reg add command blocked | regedit | Create the value by hand in the key shown in Command 7 |
powercfg /setactive SCHEME_MIN | Settings → System → Power & battery | Power mode → Best performance |
DISM /Online /Cleanup-Image /RestoreHealth | Repair-WindowsImage -Online -RestoreHealth | Same repair through PowerShell |
powercfg /h on | Control Panel → Power Options | “Choose what the power buttons do” |
⚠️ When These Commands Won’t Help
If you applied everything and the PC is still slow, the cause probably isn’t a setting. The usual suspects:
| Symptom | Likely cause | What to do |
|---|---|---|
| Disk at 100% in Task Manager all the time | Mechanical hard drive | Switch to an SSD — the biggest possible gain. See HDD to SSD upgrade |
| Memory above 90% with few apps open | Not enough RAM (4 GB or less) | Add memory. See slow PC due to low RAM |
| Slowness that gets worse and freezes of a few seconds | Failing drive | Check the drive’s health before it dies |
| Fan always at full speed and performance dropping | Overheating | Internal cleaning and new thermal paste |
| Strange programs, pop-ups, browser redirects | Malware or adware | Full scan. See free antivirus |
If you’re swapping the HDD for an SSD, you can move your whole Windows over without reinstalling, using a clone with Hasleo Disk Clone.
📖 Quick Glossary
| Term | Meaning |
|---|---|
| Service | A program Windows keeps running in the background, with no window |
| Windows Registry | Internal database with system and app settings |
| Defragmentation | Reorganizing file pieces on a mechanical hard drive for faster reads |
| TRIM | A signal Windows sends the SSD about free blocks, keeping speed and lifespan |
| Hibernation (hiberfil.sys) | File where Windows saves the system state; the base of fast startup |
| Power plan | Set of rules that balances performance and energy saving |
| Driver | Program that teaches Windows how to talk to a component (graphics, network, sound) |
| Restore point | Snapshot of system settings to roll back without losing files |
FAQ
Do these commands work on both Windows 10 and Windows 11?
Yes. All 10 commands work on both versions. Only a few screen names change, like the Startup tab, which is called Startup apps on Windows 11.
Do I need to defragment my drive if I use an SSD?
No. An SSD should not be defragmented. But the defrag C: /O command is safe, because on an SSD it only runs TRIM, which helps keep it fast.
Can these commands break Windows?
Used as explained, no. Still, create a restore point first, especially before the services and registry steps.
Does the MenuShowDelay tweak speed up the Start menu?
No. It reduces the wait before submenus open, like Send to in the right-click menu. The Windows 11 Start menu doesn’t use this value.
Is the High performance plan worth it on a laptop?
When plugged in, yes, if you need the performance. On battery it makes the laptop hotter and shortens battery life; prefer the balanced mode.
Should I disable Windows Search to gain performance?
Usually not. Start menu and File Explorer search become very slow. If the indexer is heavy, reduce the indexed locations instead of disabling the service.
How often should I repeat the optimization?
Disk cleanup and a review of startup apps can be done every one or two months. The DISM and SFC repair only when there are errors or freezes.
I did everything and the PC is still slow. Now what?
The cause is probably hardware: a mechanical hard drive, too little RAM, a failing drive or overheating. Switching from an HDD to an SSD is usually the biggest improvement possible.
🎮 How much did you learn?
Once you pick an answer it locks in — reload the page to try again.
1. What does defrag C: /O do on an SSD?
2. Where does the MenuShowDelay value go?
3. Which command should run before sfc /scannow?
4. Which shortcut opens Task Manager directly?
5. Which of these tips does NOT make the PC faster?
Esse conteúdo ajudou você?
Compartilha com alguém que também vai curtir — é rapidinho e ajuda muito o nosso trabalho a chegar em mais gente.
Conhecimento só tem valor quando compartilhado.
Manter essa estrutura de laboratórios funcionando e produzir conteúdos de engenharia de forma totalmente gratuita e acessível exige tempo e dedicação diária à bancada. Esse guia salvou os seus arquivos? Você pode contribuir diretamente para manter o nosso trabalho independente forte. Apoie doando qualquer valor!
Quer apoiar a nossa bancada independente?
[email protected]