This PowerShell script provides comprehensive system optimization for Windows 11, including cleanup, performance tweaks, bloatware removal, and hardware configuration optimization.
- Windows 11 Operating System
- PowerShell 5.1 or higher
- Administrator privileges
- Stable internet connection
- At least 10GB free disk space
-
Download the Script
git clone https://github.com/yourusername/windows11-optimization.git cd windows11-optimization
-
Enable PowerShell Script Execution Open PowerShell as Administrator and run:
Set-ExecutionPolicy Bypass -Scope Process -Force
-
Preparation
- Create a system restore point
- Close all running applications
- Save any unsaved work
- Ensure laptop is plugged in (if applicable)
-
Running the Script
- Right-click on
windows-optimization-script.ps1
- Select "Run with PowerShell"
- Or execute via PowerShell:
.\windows-optimization-script.ps1
- Right-click on
-
Optimization Process The script will execute the following steps in order:
- ✅ Administrator privileges check
- 🗑️ Remove old Windows installation
- 🔄 Clear Windows Update cache
- ⚡ Apply performance optimizations
- 📦 Remove bloatware applications
- 🎮 Configure GPU settings
- 💾 Optimize virtual memory
- 🧹 Clean system files
- 🔧 Clean registry
-
Post-Execution
- Review the completion message
- Restart your computer when prompted
-
System Cleanup
- Removes temporary files
- Clears Windows Update cache
- Removes Windows.old folder
- Empties Recycle Bin
- Cleans system logs
-
Performance Optimization
- Disables hibernation
- Reduces startup delay
- Enables high-performance power plan
-
Bloatware Removal
- Removes pre-installed unnecessary apps
- Cleans up Microsoft Store apps
- Removes unused Windows features
-
Hardware Optimization
- Configures GPU preferences
- Optimizes virtual memory
- Adjusts system settings for better performance
-
Backup
- Create a system restore point before running
- Back up important data
- Export current registry settings
-
System Requirements
- Minimum 8GB RAM recommended
- SSD recommended for best results
- Latest Windows 11 updates installed
-
Warnings
- Script requires restart after completion
- Some settings are permanent
- Some apps will be uninstalled
- Custom GPU settings will be overwritten
-
Script Won't Run
Set-ExecutionPolicy Bypass -Scope Process -Force
-
Access Denied Errors
- Ensure running as Administrator
- Check antivirus interference
- Verify file permissions
-
Failed Operations
- Restart computer and try again
- Run Windows system file checker:
sfc /scannow
- v1.0.0 - Initial release
- v1.1.0 - Added comprehensive cleanup
- v1.2.0 - Added GPU optimization
- v1.3.0 - Added virtual memory management
- Open an issue on GitHub
- Contact: [email protected]
- Documentation: [Wiki Link]
This project is licensed under the MIT License
Author: Javian Picardo
Last Updated: February 2025
GitHub: [Repository Link]