Why Optimizing Windows is Fundamental for Your PC Performance
Optimize Windows is a constant need to keep your computer running efficiently and quickly. In time, the operating system accumulates unnecessary files, background processes and settings that can significantly compromise performance.
In this complete guide, you will learn the more effective commands to optimize Windows, from basic techniques to advanced settings that can transform the experience of using your computer.
Command Command Essential Commands for Optimization

1. Temporary File Cleanup and System
The command cleanmgr is one of the most powerful tools to release disk space:
cleanmgr /sagerun:1– Run automatic cleaning with default settingscleanmgr /d c:– Cleans the disk specifically C:cleanmgr /sageset:1– Configure which files will be cleaned automatically
2. File System Verification and Repair
To maintain file system integrity, use:
chkdsk C: /f /r– Checks and fixes errors on hard drivesfc /scannow– Check system file integrityDISM /Online /Cleanup-Image /RestoreHealth– Repairs Windows image
3. Memory and Process Optimization
Better manage system resources with these commands:
tasklist– List all running processestaskkill /f /im nomeprocesso.exe– Ends specific processeswmic process get name,processid,percentprocessortime– Monitors CPU usage by process
PowerShell: Advanced Commands for Deep Windows Optimization
Automatic Optimization Script
PowerShell offers more powerful commands for Windows optimization:
iwr -useb https://christitus.com/win | iex
This automated script performs multiple optimizations, including:
- Disability of unnecessary services
- Optimization of privacy settings
- Cleaning of temporary files
- Windows Update Configuration
PowerShell Commands for Performance
Get-AppxPackage | Remove-AppxPackage– Removes unnecessary Microsoft applications StoreDisable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer"– Disable unused optional resourcesSet-Service -Name "DiagTrack" -StartupType Disabled– Disable telemetry services
God Mode: Total Access to Windows Settings

O God Mode is a hidden feature that provides centralized access to all Windows settings:
Create a folder with the name: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
This special folder provides access to more than 200 advanced settings including:
- System performance settings
- Advanced Power Options
- Network and security settings
- Administrative tools
- User settings and accounts
Windows Startup Optimization and Services
Program Management at Initialization
Use these commands to optimize boot time:
msconfig– Opens the system configuration utilitywmic startup get caption,command– List of programs that start with WindowsGet-CimInstance Win32_StartupCommand | Select-Object Name, command, Location– PowerShell to list startup programs
Disability of Unnecessary Services
Identify and disable services that consume resources:
services.msc– Opens the service managersc config "NomeDoServiço" start=disabled– Disables specific serviceGet-Service | Where-Object {$_.Status -eq "Running"}– List running services
Commands for Network and Internet Optimization
DNS Cleaning and Connectivity Optimization
Improve the performance of your connection to:
ipconfig /flushdns– Clean DNS cachenetsh winsock reset– Resets network settingsnetsh int ip reset– Reset TCP/IP stacknetsh interface tcp set global autotuninglevel=normal– Optimizes TCP
Diagnosis of Connectivity
ping google.com -t– Tests continuous connectivitytracert google.com– Track connection routenetstat -an– Show active network connections
Advanced Monitoring and Optimization Tools
Performance Monitor (PerfMon)
Use perfmon for detailed system monitoring:
- Real-time CPU, memory and disk monitor
- Creating custom alerts
- Historical performance reports
- Identification of system necks
Resource Manager (ResMon)
The command resmon offers:
- Detailed resource monitoring
- Identification of processes that consume more resources
- Analysis of disk and network activity
- Information about handsles and modules
Commands for Cleaning and Preventive Maintenance
Automatic Task Scheduler
Configure automatic maintenance with:
schtasks /create /sc daily /tn "Limpeza Diária" /tr "cleanmgr /sagerun:1"schtasks /run /tn "Limpeza Diária"– Perform task manuallyschtasks /query /tn "Limpeza Diária"– Check task status
Disc Defragmentation and Optimization
defrag C: /A– Analyze disk fragmentationdefrag C: /O– It completely defragmentsdefrag C: /X– Free space fragmentation
Specific commands for Windows 10 and 11
Microsoft Store Optimization and UWP Applications
wsreset.exe– Microsoft cache reset StoreGet-AppxPackage -AllUsers | Reset-AppxPackage– Resets all UWP applicationsAdd-AppxPackage -register "C:Program FilesWindowsApps*AppxManifest.xml" -DisableDevelopmentMode– Re-register applications
Privacy and Telemetry Settings
sc delete DiagTrack– Removes telemetry servicesc delete dmwappushservice– Remove WAP Push Message Routing Servicereg add "HKLMSOFTWAREPoliciesMicrosoftWindowsDataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f– Disable telemetry via registration
Troubleshooting: Commands for Troubleshooting
Advanced Diagnostic Commands
msinfo32– Detailed system informationdxdiag– DirectX Diagnosiseventvwr– Event Viewerreliability– Reliability monitor
Recovery Commands
bootrec /fixmbr– Correct Master Boot Recordbootrec /fixboot– Correct boot sectorbootrec /rebuildbcd– Rebuild boot configuration data
Custom Scripts for Automation
Create Optimization Script Custom
Create a .bat file with the most used commands:
@echo off
echo Iniciando otimização do Windows...
cleanmgr /sagerun:1
sfc /scannow
ipconfig /flushdns
echo Otimização concluída!
Advanced PowerShell Script
For more technical users, create PowerShell scripts that combine multiple optimizations into a single execution, including system checks, automated cleaning, and performance settings.
Best Practices and Important Precautions
Backup Before Changes
Always backup the registry and create restore points before running commands that change critical system settings.
Environment Test Controlled
For corporate environments, test all commands on development machines before implementing in production.
Post-Optimization Monitoring
After applying optimizations, monitor the system for a few days to ensure proper stability and performance.
Conclusion: Transform Your Windows Performance
Windows optimization through commands is an essential skill that can completely transform the experience of using your computer. With the commands shown in this tab, you have powerful tools for:
- Significantly accelerate system boot
- Release memory and processing resources
- Improve overall Windows stability
- Automate maintenance processes
- Solve common performance problems
Remember that regular maintenance is essential to keep your system always optimized. Implement a maintenance routine using the learned commands and experience the difference in your Windows performance.
Start today applying these techniques and turning your computer into a faster and more efficient machine!








