A hardware-safe, laptop-optimized PowerShell script designed to remove bloatware, disable invasive telemetry and AI features, and optimize system performance. Unlike generic debloaters, this script is specifically engineered to protect OEM hardware controls, battery health, and SSD lifespan.
- Smart Debloating: Removes Microsoft bloatware and third-party trialware while preserving OEM apps (MyASUS, Lenovo Vantage, etc.) for battery and fan control.
- Privacy and Telemetry: Disables advertising IDs, tailored experiences, and optional diagnostic data while keeping Required telemetry intact to ensure Windows Update stability.
- AI and Copilot Removal: Completely disables Windows Copilot and AI data analysis features via the Registry.
- Windows Update Control: Prevents Windows Update from automatically installing third-party drivers and stops forced auto-reboots.
- Service Optimization: Disables unnecessary background services to reduce RAM and CPU usage.
- Network and Gaming Stack: Tunes TCP settings, enables Game Mode, and optimizes network throttling for lower latency.
- UI Cleanup: Restores the classic Windows 10 right-click context menu, hides Cortana and Task View, and shows file extensions.
- SSD Protection: Disables Fast Startup and Hibernation to reduce solid-state drive wear.
- Battery and Thermal Safety: Forces the Balanced power plan to prevent thermal throttling and preserve battery health.
- OEM App Preservation: Keeps manufacturer-specific applications for critical hardware control.
Please review these changes before running the script:
- Start Menu Search is disabled (WSearch service is stopped). Use File Explorer search instead.
- Xbox services are disabled. This script is not compatible with Xbox Game Pass.
- Hibernation is disabled. Only Sleep and Shutdown modes are available.
- Power plan is set to Balanced. This is optimized for battery life and thermals, not maximum gaming performance.
- Download or clone this repository to your local machine.
- Right-click on Run.bat and select "Run as administrator".
- A command prompt will appear. Type Y and press Enter to confirm and proceed.
- Wait for the script to finish executing.
- Restart your PC to finalize all changes.
- Download or clone this repository.
- Right-click on Optimize-Windows.ps1 and select "Run with PowerShell".
- Alternatively, open PowerShell as Administrator and execute: .\Optimize-Windows.ps1
- Type Y to confirm the disclaimer and proceed.
- Restart your PC when the script completes.
This repository includes an optimized DNSJumper.ini file tailored for low-latency gaming in Iran, featuring servers like Radar Game, Lag Zero, and Electro.
To apply this configuration:
- Download DNS Jumper from the official Sordum website.
- Extract the DNS Jumper archive.
- Replace the default DNSJumper.ini file in the extracted folder with the DNSJumper.ini provided in this repository.
- Open DNS Jumper, click on Fastest DNS, and apply the server with the lowest ping.
- Optimize-Windows.ps1: The main laptop optimization and debloat script.
- Run.bat: Batch file to automatically run the script with administrator privileges.
- DNSJumper.ini: Custom DNS configuration for low-latency gaming.
- README.md: This documentation file.
Contributions, issues, and feature requests are welcome.
- Fork the repository.
- Create your feature branch (git checkout -b feature/YourFeature).
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/YourFeature).
- Open a Pull Request.
Distributed under the MIT License. See the LICENSE file for more information.