A Windows batch script that safely backs up and removes unwanted startup programs from registry, while protecting essential system entries.
This tool helps you clean up programs that automatically start with Windows by:
- Backing up all registry startup entries before removal
- Creating dual backups (Desktop + Local folder)
- Protecting essential Windows services
- Providing easy restoration instructions
- Dual Backup System: Creates backups on both Desktop and in local Backups folder
- Safe Operation: Protects critical entries (Default, OneDrive, SecurityHealth)
- Detailed Logging: Complete record of all removed entries with restore instructions
- Easy Restoration: Step-by-step guide to restore any entry if needed
- No Installation Required: Portable batch script
- Windows 7 or later
- Administrator privileges
- Download
RegistryStartupCleaner.bat - Right-click the file
- Select "Run as administrator"
- Follow the on-screen prompts
git clone https://github.com/mirmohmmadluqman/registry-startup-cleaner.git
cd registry-startup-cleanerRight-click RegistryStartupCleaner.bat and run as administrator.
The script scans these registry locations:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
These entries are NEVER removed:
(Default)- Windows default valueOneDrive- Microsoft OneDrive syncSecurityHealth- Windows Security
After running the script, you'll find backup folders containing:
%USERPROFILE%\Desktop\Registry_Startup_Backup_YYYYMMDD_HHMMSS\
├── Backup_Info.txt (Complete list of removed entries)
├── How_To_Restore.txt (Restoration instructions)
└── Summary.txt (Operation summary)
script-directory\Backups\Backup_YYYYMMDD_HHMMSS\
├── Backup_Info.txt
├── How_To_Restore.txt
└── Summary.txt
- Press
Win + R, typeregedit, press Enter - Navigate to the registry path shown in
Backup_Info.txt - Right-click in the right panel → New → String Value
- Enter the Entry name from
Backup_Info.txt - Double-click and paste the Value
Open Command Prompt as Administrator:
reg add "REGISTRY_PATH" /v "ENTRY_NAME" /t REG_SZ /d "VALUE" /fExample:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "MyApp" /t REG_SZ /d "C:\Program Files\MyApp\app.exe" /f- Always review
Backup_Info.txtbefore restoring any entries - Only restore entries you recognize and trust
- Keep backups until you're certain everything works correctly
- Restart your computer after making changes for them to take effect
Solution: Make sure you're running the script as Administrator
Solution: Some entries may be protected by Windows. Check Event Viewer for details.
Solution: The program may be re-adding itself. Check:
- Task Scheduler
- Program settings/preferences
- Consider uninstalling the program
Problem: MiniTool Partition Wizard opens automatically on startup with update notifications
Solution:
- Run Registry Startup Cleaner as administrator
- The script finds and removes the MiniTool entry from registry
- Backups are saved to Desktop and Backups folder
- Restart computer
- MiniTool no longer opens on startup
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This tool modifies Windows registry. While it includes safety measures and backup functionality:
- Use at your own risk
- Always keep backups
- Test on a non-critical system first
- Review what's being removed before proceeding
The authors are not responsible for any system issues or data loss.
- Inspired by common Windows startup management tools
- Community feedback and testing
Made with ❤️ for cleaner Windows startups