Win-Tweak is a comprehensive Windows batch script for system optimization, backup, and restoration. The script should be named Win-Tweak.bat for clarity. Version 1.0 is the initial release, featuring a complete optimization suite with Copilot disable policy, menu-driven interface for applying performance tweaks, creating system restore points, performing full registry backups, installing Visual C++ runtimes, and restoring default Windows settings.
- Standard Optimizations: Recommended for most PCs with balanced performance improvements
- Aggressive Optimizations: Designed for low-end PCs requiring maximum performance
- UI & Performance Tweaks: Menu delay customization, power plan optimization, startup delay removal
- Service Management: Disable/enable system services (SysMain, Windows Search, Telemetry)
- Visual Effects: Configure for best performance or balanced settings
- Advanced Tweaks: Memory management, CPU priority, filesystem cache optimization
- Create System Restore Point ONLY - Quick backup before making changes
- Apply System Optimizations & Tweaks - Choose between Standard or Aggressive modes
- Install Visual C++ Runtimes - Guided download and installation from TechPowerUp
- Perform FULL Registry Backup ONLY - Complete registry export to Desktop
- ALL Operations - Backup + Restore Point + Optimizations + Runtimes
- Restore Default Windows Settings - Revert all tweaks and reinstall default apps
- Exit - Close the application
- Automatic Administrator Check: Self-elevates to admin privileges
- System Restore Points: Creates restore points with date stamps
- Registry Backups: Both targeted and full registry exports
- Restoration Capability: Complete rollback of all applied tweaks
- Menu Delay Configuration: Customize menu response time (50ms for fast, 400ms default)
- Power Plan Optimization: Switch to Ultimate or High Performance modes
- Startup Delay Removal: Eliminate program startup delays
- Search Enhancements: Disable search highlights and web suggestions
- Taskbar Customization: Show seconds in clock, disable widgets, enable "End Task"
- Copilot Management: Complete disable via Windows policy
- SysMain (Superfetch): Stop and disable for reduced background activity
- Windows Search: Disable indexing service for performance
- Telemetry Service: Stop DiagTrack for privacy
- Hibernation Control: Enable/disable based on current state
- Verbose Status: Enable detailed boot/shutdown messages
- Svchost Optimization: Improve process splitting for better resource usage
- Filesystem Cache: Increase cache size for better I/O performance
- CPU Priority: Optimize priority separation for foreground applications
- Shutdown Speed: Reduce application and service timeout values
- Background Apps: Disable all background app permissions (aggressive mode)
- Filesystem Behavior: Optimize last access time and 8.3 naming
Interactive removal of unnecessary Windows apps including:
- Gaming & Media: Xbox apps, 3D Viewer, Clipchamp, Movies & TV
- Productivity: Mail/Calendar, People, Teams, Phone Link, To Do, Sticky Notes
- System Utilities: Alarms & Clock, Maps, Voice Recorder
- Other Components: News, Feedback Hub, Solitaire, OneDrive
- Critical Apps: Calculator, Photos (with warnings)
- Guided Download: Opens TechPowerUp download page
- Automatic Detection: Finds downloaded files in Downloads folder
- Installation Management: Extracts and runs installer with cleanup options
- Progress Tracking: Step-by-step installation guidance
- Version: 15.0 (Final GitHub Release)
- Size: Comprehensive batch script with multiple functions
- Safety: Includes error handling and confirmation prompts
The script creates various backup files in the same directory:
Backup_Desktop.reg- Desktop settingsBackup_ExplorerPolicies.reg- Explorer policiesBackup_CopilotPolicy.reg- Copilot settingsBackup_ExplorerAdvanced.reg- Advanced Explorer settingsBackup_Explorer.reg- General Explorer settingsBackup_DWM.reg- Desktop Window ManagerBackup_SearchSettings.reg- Search configurationBackup_PriorityControl.reg- Process prioritiesBackup_MemoryManagement.reg- Memory settingsBackup_SystemPolicies.reg- System policiesBackup_Control.reg- System control settings
Creates a timestamped folder on Desktop containing:
Backup_HKCR.reg- HKEY_CLASSES_ROOTBackup_HKCU.reg- HKEY_CURRENT_USERBackup_HKLM.reg- HKEY_LOCAL_MACHINEBackup_HKU.reg- HKEY_USERSBackup_HKCC.reg- HKEY_CURRENT_CONFIG
- Windows 10/11 operating system
- Administrator privileges (script auto-elevates)
- Internet connection (for Visual C++ runtime download)
- Download: Save the script file to your preferred location
- Execute: Double-click
Win-Tweak.bator run from command prompt - Elevation: Allow administrator privileges when prompted
- Navigate: Use the numbered menu system to select operations
- Follow Prompts: Answer Y/N questions based on your preferences
- Always create a restore point before applying tweaks
- Read each prompt carefully - some changes are irreversible
- Start with Standard optimizations before trying Aggressive mode
- Keep backup files until you're satisfied with changes
- Test system stability after applying optimizations
The script includes comprehensive restoration capabilities:
- Registry Restoration: Import backup .reg files to restore settings
- Default Settings: Built-in function to restore Windows defaults
- App Reinstallation: Automatic reinstallation of removed Windows apps
- Service Recovery: Restore disabled services to default states
The script modifies various registry keys for optimization:
- HKCU\Control Panel\Desktop: Menu delays, timeouts
- HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer: UI settings
- HKLM\SYSTEM\CurrentControlSet\Control: System-wide settings
- HKCU\Software\Policies\Microsoft\Windows: Policy configurations
Uses Windows Service Control (sc) commands to:
- Stop and disable unnecessary services
- Configure service startup types
- Manage Xbox, print, and telemetry services
Incorporates PowerShell for:
- App package removal (Get-AppxPackage)
- System restore point creation (Checkpoint-Computer)
- Archive extraction (Expand-Archive)
- App reinstallation during restoration
- Operating Systems: Windows 10, Windows 11
- Architecture: x86, x64
- Privileges: Administrator rights required
- Dependencies: PowerShell (included in modern Windows)
- Disk Space: Minimal (backups require additional space)
- Use at your own risk: System modifications can affect stability
- Backup essential data: Always backup important files before running
- Test in VM first: Consider testing in a virtual machine environment
- Administrator required: Script must run with elevated privileges
- System-specific: Some tweaks may not work on all Windows configurations
- PowerShell Execution: Script uses PowerShell for advanced operations
- Registry Modifications: Makes extensive registry changes
- Service Management: Modifies Windows services and startup behavior
- App Removal: Permanently removes Windows Store applications
- Network Access: Downloads Visual C++ runtimes from external source
- Script won't run: Ensure administrator privileges and PowerShell is enabled
- Restore point fails: Check if System Restore is enabled on C: drive
- Apps won't remove: Some system apps are protected and cannot be uninstalled
- Performance issues: Use restoration feature to revert changes
- Service errors: Some services may be dependencies for others
- System Restore: Use Windows System Restore to revert to pre-script state
- Registry Import: Import backup .reg files to restore specific settings
- Default Restoration: Use built-in menu option 6 to restore defaults
- Manual Recovery: Manually re-enable services via services.msc
- Complete Feature Set: Full Windows optimization suite with all core functionality
- Professional Documentation: Comprehensive guides and safety documentation
- Repository Organization: Professional structure with proper folder organization
- Community Ready: Contribution guidelines and professional project setup
- Safety First: Multiple backup systems and restoration capabilities
- Generated by Gemini 2.5 Pro: AI-generated optimization script with human documentation
- Enhanced Copilot management capabilities
- Improved error handling and user feedback
- Comprehensive backup and restoration features
- Streamlined Visual C++ runtime installation process
While primarily menu-driven, the script can be integrated into larger automation workflows:
- Place in startup scripts for automated optimization
- Include in system deployment processes
- Use with task scheduling for regular maintenance
Users can modify the script to:
- Adjust timeout values for their specific needs
- Add additional registry tweaks
- Customize the app removal list
- Modify service management preferences
The "ALL" option (menu choice 5) provides:
- Automated workflow execution
- Minimal user intervention required
- Complete system optimization in one process
- Ideal for new system setup or major maintenance
- Windows Registry: Understanding registry structure and safety
- PowerShell Basics: Learning PowerShell for system administration
- Windows Services: Understanding Windows service dependencies
- System Restore: Creating and managing restore points
- Share experiences: Document what works for your system configuration
- Report issues: Provide detailed error messages and system information
- Suggest improvements: Propose new features or optimizations
- Help others: Share troubleshooting solutions
- Minimum RAM: 4GB (8GB recommended for aggressive optimizations)
- Storage Space: 100MB free for backups and temporary files
- Processor: Any x86/x64 compatible processor
- Network: Internet connection for Visual C++ runtime download
- Windows PowerShell: Version 5.0 or higher (included in Windows 10/11)
- Windows Management Framework: For advanced system operations
- Registry Editor: For manual recovery if needed
- .NET Framework: For some PowerShell operations
- Personal Use: Free for personal and educational use
- Commercial Use: Evaluate licensing requirements for business environments
- Modification: Users may modify for personal use
- Distribution: Follow repository licensing terms
- Script Generation: Win-Tweak.bat generated by Gemini 2.5 Pro AI
- Project Maintainer: Repository organization and documentation
- Community Input: Inspired by community best practices for Windows optimization
- Version Control: Maintained on GitHub for public access and collaboration
- Testing: Extensively tested across multiple Windows 10/11 configurations
- Visual C++ Runtimes: Courtesy of TechPowerUp's All-in-One package
- Windows APIs: Utilizes Microsoft's documented registry and service interfaces
- PowerShell Framework: Built on Microsoft PowerShell infrastructure
- Community Feedback: Incorporates user suggestions and bug reports
- Windows optimization community for shared knowledge
- Beta testers who provided valuable feedback
- Documentation contributors and technical reviewers
- Users who reported issues and suggested improvements
This project is released under an open source license. See LICENSE file for complete terms and conditions.
- Warranty Disclaimer: Provided "as-is" without warranties of any kind
- Liability Limitation: Authors not responsible for system damage or data loss
- Modification Rights: Users may modify for personal use
- Attribution: Credit original authors when redistributing
- TechPowerUp: Visual C++ runtime package source
- Microsoft: Windows APIs and PowerShell framework
- Community Scripts: Inspiration from various Windows optimization scripts