A curated collection of useful and beginner-friendly Windows .bat scripts to automate common tasks. Perfect for system admins, power users, and anyone looking to make Windows life easier.
| Category | Description | Popular Scripts |
|---|---|---|
cleanup |
Scripts to remove temporary files, free up space, etc. |
• disk-cleanup.bat • temp-file-nuker.bat • log-file-cleanup.bat |
networking |
Check internet connectivity, IP info, manage Wi-Fi, etc. |
• wifi-password-manager.bat • connection-tester.bat • ip-config-viewer.bat |
system |
Display system specs and other diagnostics |
• sys-info-reporter.bat • drivers-backup.bat • scheduled-restart.bat |
user-management |
Scripts for managing users locally |
• bulk-user-creator.bat • password-reset.bat • account-auditor.bat |
utils |
Utility helpers for various tasks |
• elevate-to-admin.bat • file-renamer.bat • folder-sync.bat |
-
Clone the repo
git clone https://github.com/yourusername/WinBatched.git cd WinBatched -
Run a script
- Double-click the
.batfile, or... - Right-click > "Run as administrator" (for scripts that require elevated privileges)
- From command line:
.\path\to\script.bat
- Double-click the
-
Create a shortcut
- Right-click script > Send to > Desktop (create shortcut)
- Add to your StartUp folder to run on boot
Here are a few highlights with examples:
@echo off
echo ===================================
echo INTERNET CONNECTION CHECKER
echo ===================================
echo.
echo Testing connection to Google DNS...
ping -n 4 8.8.8.8 | find "TTL="
if %errorlevel% == 0 (
echo [SUCCESS] Internet connection is working!
) else (
echo [FAILED] No internet connection detected.
)
pause@echo off
echo ===================================
echo TEMP FILE CLEANER
echo ===================================
echo.
echo Cleaning Windows temp files...
del /q /f /s %TEMP%\*
echo Cleaning user temp files...
del /q /f /s %USERPROFILE%\AppData\Local\Temp\*
echo.
echo Temporary files cleaned successfully!
pause@echo off
:: Check for admin rights
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb runAs"
exit /b
)
echo You are now running with administrative privileges!
pause- System Maintenance: Schedule cleanup scripts to run weekly
- Network Troubleshooting: Quickly diagnose connectivity issues
- Deployment: Set up new Windows machines with standard configurations
- Automation: Create task sequences for repetitive administrative tasks
- User Support: Create simple menus for non-technical users to run complex tasks
Some scripts (like creating users or cleaning system files) require Administrator privileges.
Look for these indicators:
- 🔒 Script comment header saying "Requires admin rights"
- Use
utils/elevate-to-admin.batto auto-prompt for elevation - Scripts that modify system files or registry
- Always create a backup before using destructive scripts
- Test scripts in a controlled environment before running in production
- Add comments to explain what each section does
- Use
@echo offto make output cleaner - Add
pauseat the end of scripts to see results before the window closes
Pull requests are welcome! If you have a handy batch script or improvement to share:
- Fork the repo
- Add your script under the right folder
- Include a header comment explaining what it does
- Test your script thoroughly
- Open a PR with a short description
All scripts should:
- Have clear, descriptive filenames
- Include comments explaining their purpose and usage
- Handle errors gracefully
- Provide user feedback during execution
- Be tested on multiple Windows versions when possible
MIT License — free to use, modify, and distribute.
- Report Issues: Use the GitHub issue tracker
- Questions: Open a discussion thread
- Feature Requests: Submit with the "enhancement" tag
Crafted with care for all Windows tinkerers ❤️