Table of Contents
The Secret Keyboard Shortcut That IT Professionals Don’t Want You to Know: Supercharge Your Windows PC with Win+R
Introduction
Your computer is lying to you.
Not maliciously — it has no agenda. But every day, buried beneath layers of bloated menus, unnecessary startup programs, clogged temp files, fragmented processes, and decades of accumulated digital sediment, your Windows PC runs at a fraction of its actual speed. And somewhere, right now, an IT professional is using a two-key shortcut to access the precise tools that could fix all of it in minutes — tools that most Windows users have never even heard of.
That shortcut is Windows + R.
It opens the Run dialog box — a humble, unassuming little field that has been part of Windows since 1995 — and it is, without exaggeration, one of the most powerful productivity and performance tools ever built into an operating system. From here, you can launch hidden administrative consoles, obliterate gigabytes of junk files, kill startup programs that are silently stealing your RAM, repair corrupted system files, manage background services, defragment drives, and tune your system’s performance profile — all without touching a mouse, navigating a single settings menu, or Googling anything.
This is not a post for developers or system administrators, although they’ll find value here too. This is for the person whose laptop takes 4 minutes to boot. For the office worker whose PC freezes every time they open three browser tabs. For the student whose computer started running hot and slow after a year of use. For anyone who has ever looked at their sluggish Windows machine and thought, “There must be something I can do about this.”
There is. And it starts with pressing two keys.
What Is the Windows + R Run Dialog?
Before we dive into the commands themselves, it’s worth understanding what you’re actually working with.
The Run dialog box is a direct interface to the Windows shell — the core operating system layer that sits beneath the graphical user interface. When you type a command into the Run dialog and press Enter, you’re bypassing the visual navigation layers entirely and sending an instruction directly to the system. This is why Run commands are faster, more direct, and often more powerful than navigating through Settings or Control Panel.
To open it, press Windows key + R simultaneously. A small dialog box appears in the lower-left corner of your screen with a single text field labelled “Open.” Type your command, press Enter (or click OK), and Windows executes it immediately.
The commands below are organised by category — from the simplest one-line performance fixes to the more advanced system optimisation tools. Work through them systematically over a single session, and you will almost certainly notice a tangible improvement in your system’s responsiveness.
Let’s begin.
Category 1: Clearing the Junk — Disk Cleanup and Temp Files
Command: temp
How to use it: Press Win+R, type temp, and press Enter.
This opens your user-level temporary files folder — typically located at C:\Users\[YourName]\AppData\Local\Temp. This folder is where Windows and applications dump temporary files they need during operation. The problem is that these files are supposed to be deleted when the application closes, and they frequently aren’t. Over months and years, this folder can accumulate gigabytes of useless files that sit there doing nothing except occupying drive space and contributing to a cluttered file system.
Select all files (Ctrl+A), delete them (Delete key), and skip any files that can’t be deleted because they’re currently in use. Empty the Recycle Bin afterward. This alone can free up substantial space on a full drive.
Command: %temp%
How to use it: Press Win+R, type %temp%, press Enter.
This opens the system-level temporary files folder — a second temporary storage location used by Windows itself and system-level processes. Perform the same select-all-and-delete process. Again, skip files that are locked by running processes.
Command: prefetch
How to use it: Press Win+R, type prefetch, and press Enter. (You may need administrator permission.)
The Prefetch folder contains data Windows uses to speed up the loading of frequently used applications. Over time, however, it accumulates data for programs you’ve long since uninstalled, creating unnecessary overhead. Clearing this folder periodically — select all, delete, skip in-use files — can contribute to a cleaner, faster boot environment.
Command: cleanmgr
How to use it: Press Win+R, type cleanmgr, and press Enter.
This launches the built-in Windows Disk Cleanup utility. Select your system drive (usually C:), click OK, and Windows will calculate how much space can be recovered from temporary files, recycle bin contents, downloaded program files, thumbnails, and more. Click “Clean up system files” for a more thorough clean that also targets Windows Update residue — a category that frequently accounts for several gigabytes of wasted space on systems that have been running for over a year.
Run this tool every few months as part of a routine maintenance cycle.
Category 2: Managing What Starts With Your Computer
Command: msconfig
How to use it: Press Win+R, type msconfig, and press Enter.
This opens the System Configuration utility, and the Startup tab here is where countless slow boot times have their origin. Every program that insists on launching when Windows starts is consuming CPU cycles, RAM, and disk activity during your boot sequence — whether you need it immediately or not. Music players, photo managers, cloud sync tools, software updaters, manufacturer utilities — all of them, by default, want to be first in line when your computer wakes up.
In Windows 10 and 11, the Startup management has been moved to Task Manager, which MSConfig will redirect you to. But msconfig remains invaluable for its Services tab — where you can disable unnecessary background services — and for the Boot tab, where advanced users can adjust boot settings and enable Safe Mode for diagnostics.
Command: taskmgr
How to use it: Press Win+R, type taskmgr, and press Enter.
The Task Manager is your real-time command centre for system performance. Most people know it only as the thing you open when a program freezes. But its true power lies in the Startup tab (the single most impactful tab for improving boot times), the Performance tab (real-time graphs of CPU, RAM, disk, and network usage), and the Processes tab (which shows you exactly what is consuming your system resources right now).
In the Startup tab, go through every entry and ask yourself: Do I need this running the moment my computer turns on? For anything that is not essential, right-click and Disable. Be conservative but thorough. Removing unnecessary startup items is often the single most effective intervention for a slow-booting Windows machine.
Command: shell:startup
How to use it: Press Win+R, type shell: startup, press Enter.
This opens the Startup folder in File Explorer — a different mechanism from the registry-based startup programs shown in Task Manager. Any shortcut placed in this folder will launch automatically when you log in. Check it for programs you don’t recognise or no longer need, and delete their shortcuts to stop them starting automatically.
Category 3: System Performance and Visual Settings
Command: sysdm.cpl
How to use it: Press Win+R, type sysdm.cpl, press Enter.
This opens System Properties — a foundational performance control panel. Navigate to the Advanced tab and click Settings under the Performance section. Here you’ll find the Visual Effects configuration: the transparency effects, animations, shadow effects, and fades that make Windows look polished but cost measurable amounts of processing power and RAM.
On lower-specification machines — or any machine that’s struggling — selecting “Adjust for best performance” removes all visual flourishes and can produce a very noticeable speed improvement. For a middle ground, select “Custom” and keep only the options labelled “Show thumbnails instead of icons” and “Smooth edges of screen fonts” — these preserve usability while stripping unnecessary overhead.
This single setting change can make an older machine feel dramatically more responsive.
Command: powercfg.cpl
How to use it: Press Win+R, type powercfg.cpl, press Enter.
This opens Power Options, and the setting you’re looking for is the Power Plan. If your machine is set to Balanced or Power Saver — as it often is by default, particularly on laptops — it is deliberately throttling your processor’s performance to extend battery life or reduce power consumption. Switching to High Performance tells Windows to run your hardware at full capacity without artificial throttling.
For desktop computers that are always plugged in, there is almost no reason to use any plan other than High Performance. For laptops, use High Performance when plugged in and Balanced on battery. The performance difference on older hardware can be significant.
Command: ms-settings:display
How to use it: Press Win+R, type ms-settings: display, press Enter.
Opens display settings directly. Reducing display resolution or refresh rate on machines with integrated graphics can marginally reduce the GPU load, freeing resources for application performance — a useful consideration on older laptops.
Category 4: System Repair and Maintenance Tools
Command: sfc /scannow (via elevated Command Prompt)
Access method: Press Win+R, type cmd, then Ctrl+Shift+Enter to open as Administrator. Type sfc /scannow and press Enter.
The System File Checker is one of Windows’ most powerful built-in repair tools, and it is astonishingly underused. It scans every protected system file on your installation against a cached copy of what those files should look like, and automatically repairs any it finds corrupted, modified, or missing.
Corrupted system files are a far more common cause of sluggishness, freezing, and unexpected errors than most users realise. A single corrupted DLL can cause cascading performance issues that no amount of disk cleanup will fix. SFC takes ten to twenty minutes to run and requires no user input after launch. If it finds and repairs issues, run it a second time to confirm all repairs were successful.
Command: dxdiag
How to use it: Press Win+R, type dxdiag, and press Enter.
The DirectX Diagnostic Tool provides a comprehensive inventory of your system hardware — processor, RAM, graphics card, sound card, and drivers. It’s invaluable for identifying outdated drivers (particularly graphics drivers, which have an outsized impact on overall system performance), verifying hardware is functioning correctly, and gathering system information for troubleshooting.
Pay particular attention to the Display tab — it shows your current graphics driver date and version, allowing you to check whether an update is available from your manufacturer.
Command: devmgmt.msc
How to use it: Press Win+R, type devmgmt.msc, press Enter.
Device Manager shows every piece of hardware connected to your system and the status of its drivers. Yellow warning triangles indicate driver problems — devices that are malfunctioning or operating in a generic compatibility mode rather than with their proper, optimised drivers. Outdated or incorrectly installed drivers are a significant source of performance degradation. Update or reinstall any flagged drivers, and regularly check your graphics, network, and storage controller drivers against manufacturer websites.
Command: mdsched
How to use it: Press Win+R, type mdsched, and press Enter.
The Windows Memory Diagnostic tool checks your RAM for errors. Faulty RAM is one of the most insidious performance problems — it causes random freezes, crashes, unexplained slowdowns, and errors that are impossible to trace without hardware-level testing. Schedule the test to run on the next restart and let Windows run it before the operating system loads. If it finds errors, you likely have a faulty RAM stick that needs replacement.
Category 5: Storage and Drive Optimisation
Command: dfrgui
How to use it: Press Win+R, type dfrgui, and press Enter.
This opens Optimize Drives — the modern Windows defragmentation and optimisation tool. For traditional spinning hard disk drives (HDDs), fragmentation — where file data is scattered across non-contiguous sectors — genuinely slows read times. Running defragmentation consolidates fragmented files and can improve HDD performance noticeably.
Important: Do not defragment an SSD. Windows knows this and will run TRIM optimisation on SSDs instead, which is the correct operation. The tool handles the distinction automatically, but it’s worth understanding why.
Command: diskmgmt.msc
How to use it: Press Win+R, type diskmgmt.msc, press Enter.
Disk Management shows all physical and virtual drives, partitions, and their health status. Use it to verify your system drive is healthy, check for unallocated space that could be merged into your primary partition, and investigate any drives showing unexpected formatting or partition structures.
Category 6: Network and Services Optimisation
Command: services.msc
How to use it: Press Win+R, type services.msc, press Enter.
The Services Manager displays every background service running on your Windows installation. Many of these services are essential; others are manufacturer additions, third-party software remnants, or Windows features you will never use — all of them consuming memory and processor cycles in the background.
Common candidates for disabling on home machines include: Windows Search indexing (if you rarely use the search function), Fax, Remote Registry, and Windows Update delivery optimization if you’re on a metered connection. Exercise caution here — research any service before disabling it, as some that appear redundant have non-obvious dependencies.
Command: inetcpl.cpl
How to use it: Press Win+R, type inetcpl.cpl, press Enter.
Opens Internet Properties. Navigate to the Advanced tab to clear the SSL state, and to the General tab to delete browsing history, cookies, cached files, and form data. While primarily an Internet Explorer/Edge legacy control panel, these settings still affect system-level networking behaviour and can resolve slow network connectivity issues rooted in cached DNS or proxy misconfigurations.
Command: ncpa.cpl
How to use it: Press Win+R, type ncpa.cpl, press Enter.
Opens your Network Connections panel directly. Disabling unused network adapters (particularly virtual adapters installed by VPN software, virtual machines, or legacy network tools) reduces the overhead Windows devotes to managing network stack activity.
Category 7: Advanced System Tools
Command: regedit
How to use it: Press Win+R, type regedit, and press Enter.
The Registry Editor is the most powerful and the most dangerous tool on this list. The Windows Registry is the central database of configuration settings for the entire operating system and all installed applications. Certain registry tweaks — adjusting menu delay times, disabling unnecessary visual notifications, modifying service startup parameters — can measurably improve system responsiveness.
Absolute rule: Never modify the registry without first exporting a backup (File > Export with “All” selected as the export range). A single incorrect registry edit can prevent Windows from booting. If you are not completely certain what a registry key does, do not change it.
Command: resmon
How to use it: Press Win+R, type resmon, and press Enter.
The Resource Monitor is Task Manager’s more detailed sibling. It provides granular, real-time data on CPU thread usage, memory allocation, and page faults, disk read/write activity per process, and network traffic per application. Use it to identify precisely which processes are consuming disproportionate resources — the kind of specific diagnosis that allows targeted remediation rather than guesswork.
Command: perfmon
How to use it: Press Win+R, type perfmon, and press Enter.
The Performance Monitor is a professional-grade system analysis tool that tracks hundreds of performance counters over time, creating logs and graphs that reveal patterns invisible in real-time monitoring. Use it to identify intermittent performance degradation, correlate slow periods with specific system events, and generate comprehensive system health reports.
Command: eventvwr
How to use it: Press Win+R, type eventvwr, and press Enter.
The Event Viewer records a complete log of every significant system event — errors, warnings, application crashes, driver failures, security events, and hardware issues. Reviewing the Windows Logs > System and Application sections for recurring errors provides a diagnostic roadmap for performance problems that resist obvious explanation.
The Optimal Performance Routine: A Step-by-Step Session
For best results, combine these commands into a single monthly maintenance session:
Step 1: Open taskmgr → Startup tab → disable unnecessary startup programs. Step 2: Run temp and %temp% — select all, delete, skip locked files. Step 3: Run prefetch — clear as above. Step 4: Run cleanmgr — clean system files, check all available categories. Step 5: Open sysdm.cpl → Advanced → Performance Settings → adjust for best performance or custom. Step 6: Open powercfg.cpl → set High Performance plan (when plugged in). Step 7: Open devmgmt.msc — check for driver warnings, update graphics drivers. Step 8: Run dfrgui — optimise all drives. Step 9: Open elevated CMD → run sfc /scannow. Step 10: Open services.msc — review and disable non-essential services. Step 11: Restart your computer and measure the difference.
Conclusion
The Windows + R dialog is a time capsule — a direct line back to the functional core of an operating system that, beneath its glossy consumer surface, remains a remarkably powerful and configurable machine. The commands above are not hacks or workarounds. They are the tools Windows ships with, built by its own engineers, intended for exactly the purpose described here: understanding, managing, and optimising how your system runs.
The tragedy is that almost no one uses them, because almost no one knows they exist.
Now you do. Press two keys. Type a command. Take back control of your computer.
FAQs
- What does pressing Windows + R actually do?
Pressing Windows + R opens the Run dialog box — a direct command interface built into every version of Windows since 95. It allows you to launch programs, open system tools, access hidden settings panels, and execute commands without navigating through menus or using a mouse.
- Is it safe to use these Run commands?
The vast majority of these commands simply open built-in Windows tools — there is no risk in opening Task Manager, Disk Cleanup, or Device Manager. The only commands requiring caution are regedit (the Registry Editor), where changes should never be made without a backup, and service modifications in services.MSc, where research before disabling is essential.
- Do I need administrator privileges for these commands?
Most commands work with a standard user account. Some — particularly sfc /scannow, prefetch, and certain service management operations — require elevated (administrator) privileges. Right-click the Run dialog or use Ctrl+Shift+Enter when opening Command Prompt to run as administrator.
- How often should I run disk cleanup using cleanmgr?
For most users, running Cleanmgr monthly is sufficient. If you install or uninstall software frequently, run Windows updates regularly, or use your PC intensively for content creation, a fortnightly cycle may be more appropriate.
- Will deleting files from the temp and %temp% folders cause any problems?
No. These folders contain temporary files that applications create during operation and should delete on closure — but often don’t. Files currently in use by running applications will be locked and cannot be deleted (Windows will warn you), so simply skip those. No data loss results from clearing these folders.
- What is the most impactful single change I can make to speed up boot time?
Disabling unnecessary startup programs via taskmgr (Startup tab) is consistently the most impactful single intervention for slow boot times. Every program running at startup delays the boot process and consumes RAM that should be available for your actual work.
- How does changing the power plan to High Performance affect my laptop’s battery?
High Performance mode instructs the processor to run at full speed rather than dynamically throttling to save energy. On battery power, this will reduce battery life noticeably — sometimes significantly. Use High Performance when plugged into mains power and switch to Balanced on battery for a reasonable middle ground.
- What does sfc /scannow actually fix?
System File Checker compares every protected Windows system file against a trusted baseline and repairs any that are found to be corrupted, modified, or missing. It is particularly useful after failed Windows updates, incomplete software installations, or malware infections that may have damaged system files.
- Should I defragment my SSD using dfrgui?
No. SSDs should never be defragmented — defragmentation causes unnecessary write operations that contribute to SSD wear without providing a performance benefit. The Optimize Drives tool (dfrgui) automatically detects SSDs and runs TRIM optimisation instead, which is the correct maintenance operation for solid-state storage.
- What is the difference between msconfig and taskmgr for startup management?
In Windows 10 and 11, startup program management has been consolidated into Task Manager’s Startup tab, and msconfig redirects there. However, msconfig remains uniquely valuable for its Services tab (where you can disable background services) and its Boot tab (for configuring boot options and enabling Safe Mode).
- Can I use Regedit to make my PC faster?
Yes — specific registry tweaks can improve responsiveness, reduce menu animation delays, and disable unnecessary notifications. However, the registry must be approached with extreme caution. Always export a complete backup before making any changes, and only modify keys you fully understand. An incorrect registry edit can prevent Windows from booting.
- What should I look for in Device Manager (devmgmt.msc) to find performance issues?
Look for any devices marked with a yellow exclamation triangle — these indicate driver errors, missing drivers, or hardware conflicts. Also, check the age of your graphics and network adapter drivers, as outdated drivers are a significant source of performance degradation, particularly for gaming and video performance.
- What does the resmon command show that Task Manager doesn’t?
Resource Monitor provides a much deeper level of detail than Task Manager: individual CPU thread activity, exact memory allocation per process, including page faults, file-specific disk read/write operations, and network connections per application with data volumes. It is the tool for diagnosing precisely which process is causing a specific performance issue.
- How do I know which services are safe to disable via services.msc?
Research each service before disabling it. Microsoft’s own documentation describes the function of every built-in Windows service. As a general rule, if you don’t use the feature a service supports, you can safely disable it. Common safe candidates for home users include: Fax, Remote Registry, and Windows Search (if you don’t use it). Never disable security services, audio services, or storage-related services.
- What is the Prefetch folder, and why does clearing it help performance?
The Prefetch folder stores data that helps Windows load frequently used applications faster. Over time, it accumulates data for programs that no longer exist on your system, creating unnecessary overhead. Clearing it periodically removes this stale data. Windows will rebuild relevant prefetch data automatically as you use applications.
- Can these commands fix a PC that’s overheating?
Some can contribute. Reducing visual effects (sysdm.cpl), disabling unnecessary services, and killing resource-hungry background processes all reduce CPU load, which generates less heat. However, if your PC is genuinely overheating, the root causes are typically physical: dust-clogged cooling vents, thermal paste degradation, or a failing fan, which require physical maintenance.
- What does Event Viewer reveal about slow performance?
Event Viewer’s System and Application logs contain error and warning entries that directly correspond to performance issues: driver crashes, application hangs, disk errors, RAM failures, and service start-up problems. Recurring errors in these logs are highly diagnostic — they often point directly to the component or service causing intermittent slowdowns.
- Is mdsched (Memory Diagnostic) necessary on a new PC?
Generally not on a brand new machine, but it’s worth running if your PC exhibits random freezes, blue screens, or crashes within the first few months — these can indicate a manufacturing defect in the RAM. On older machines (3+ years), running it annually is a reasonable precaution.
- How do I use perfmon for performance monitoring?
Open perfmon, expand Monitoring Tools, and select Performance Monitor. Click the green “+” button to add performance counters — useful ones include Processor > % Processor Time, Memory > Available MBytes, PhysicalDisk > Avg. Disk Queue Length, and Network Interface > Bytes Total/sec. These counters reveal system behaviour patterns over time that snapshot tools like Task Manager miss.
- Does clearing temp files delete anything important?
No. Temporary files are, by definition, not permanent storage. Applications that need to preserve data write it to the proper application data directories, not the temp folder. The temp folder contains intermediate processing files, installer remnants, and cached data that were supposed to be automatically cleaned. Nothing in the temp folder is irreplaceable.
- What is the shell: startup folder, and how does it differ from registry startup entries?
Windows has two startup mechanisms: the Startup folder (accessible via shell: startup) and registry-based startup entries (visible in Task Manager’s Startup tab). The Startup folder contains shortcuts placed there manually by users or installers. Both methods cause programs to launch at login, but they are managed separately. Check both locations when auditing your startup programs.
- Can Win+R commands help with internet speed?
Indirectly, yes. Using ncpa.cpl to disable unused network adapters, clearing the DNS cache (via elevated command prompt: ipconfig /flushdns), and reviewing network-related services in services.MSc can resolve software-level network bottlenecks. If your internet is slow due to ISP or hardware factors, software optimisation has a limited impact.
- What’s the fastest way to check how much RAM I’m using right now?
Press Win+R, type taskmgr, press Enter, and navigate to the Performance tab. The Memory section shows total installed RAM, current usage, available memory, and the memory usage graph over time. If your memory usage is consistently above 80% under normal loads, a RAM upgrade may be more beneficial than any software optimisation.
- Is High Performance power mode bad for my desktop PC’s hardware?
No. High Performance mode on a desktop simply prevents the CPU from throttling its clock speed downward during light loads — it doesn’t push hardware beyond its designed specifications. Modern CPUs are designed to handle continuous high-performance operation. The only relevant concern for desktops is electricity consumption, which increases modestly.
- How do I find out what’s making my PC slow specifically?
The diagnostic sequence: open Task Manager to check current CPU/RAM/disk usage; if something is peaking, identify the process. Open Resmon for more details. If problems are intermittent, run perfmon and set up logging. Check Event Viewer for error patterns. Run mdsched to rule out RAM issues. Run sfc /scannow to rule out corrupted system files.
- Will these optimisations work on Windows 7, 8, 10, and 11?
The vast majority of commands covered here work across Windows 7, 8, 8.1, 10, and 11. Minor differences exist in the interface of some tools (particularly Task Manager, which was significantly redesigned in Windows 8). Windows 11 introduced some changes to Settings navigation, but all core system tools remain accessible via Run commands.
- Should I install third-party optimization software instead of doing this manually?
Generally, no. Most third-party “PC optimizer” software does nothing that Windows’ built-in tools don’t do, charges a subscription for the privilege, and sometimes introduces its own performance overhead — or worse, installs additional unwanted software. The tools described in this article are the actual tools, built by the people who built the operating system.
- What is the single most common cause of a slow Windows PC?
By a significant margin: excessive startup programs. This is followed closely by insufficient free disk space on the system drive (Windows performance degrades significantly when the system drive is more than 85% full), accumulated temp files and browser cache, outdated drivers, and finally, hardware that has reached the end of its useful life for the tasks being asked of it.
- Can I use these commands on a work or corporate computer?
Potentially with limitations. Corporate machines often have Group Policy restrictions that prevent modification of startup programs, power plans, visual settings, and services. Some commands may require IT administrator privileges. Check with your IT department before making system-level changes on a work machine.
- After running all these optimizations, what is the most effective long-term strategy for keeping my PC fast?
Establish a monthly maintenance routine: clear temp files, run Disk Cleanup, review startup programs when you notice new ones appearing, keep drivers updated, and restart your computer regularly (not just sleep/hibernate). Avoid installing unnecessary software. Keep at least 15–20% of your system drive free. And consider upgrading to an SSD if you’re still running a spinning hard drive — it is the single most transformative hardware upgrade available for most older PCs.
Disclaimer: The content on this blog is for informational purposes only. The author’s opinions are personal and not endorsed. Efforts are made to provide accurate information, but completeness, accuracy, or reliability are not guaranteed. The author is not liable for any loss or damage resulting from the use of this blog. It is recommended to use the information on this blog at your own discretion.
