Skip to content

mini-page/WinBatched

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 WinBatched – Windows Batch Scripts Toolkit

CMD PowerShell Batch

GitHub stars GitHub forks GitHub issues License

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.

WinBatched Banner

🧰 What's Inside?

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

🚀 Quick Start

  1. Clone the repo

    git clone https://github.com/yourusername/WinBatched.git
    cd WinBatched
  2. Run a script

    • Double-click the .bat file, or...
    • Right-click > "Run as administrator" (for scripts that require elevated privileges)
    • From command line: .\path\to\script.bat
  3. Create a shortcut

    • Right-click script > Send to > Desktop (create shortcut)
    • Add to your StartUp folder to run on boot

📜 Sample Scripts

Here are a few highlights with examples:

✅ Test Internet Connection

@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

🗑️ Clear Temporary Files

@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

🛡️ Run As Admin

@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

🔄 Common Use Cases

  • 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

🛡️ Admin Rights

Some scripts (like creating users or cleaning system files) require Administrator privileges.

Admin elevation prompt

Look for these indicators:

  • 🔒 Script comment header saying "Requires admin rights"
  • Use utils/elevate-to-admin.bat to auto-prompt for elevation
  • Scripts that modify system files or registry

📚 Best Practices

  • 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 off to make output cleaner
  • Add pause at the end of scripts to see results before the window closes

🤝 Contributing

Pull requests are welcome! If you have a handy batch script or improvement to share:

  1. Fork the repo
  2. Add your script under the right folder
  3. Include a header comment explaining what it does
  4. Test your script thoroughly
  5. Open a PR with a short description

📋 Script Guidelines

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

📝 License

MIT License — free to use, modify, and distribute.

💬 Support

  • Report Issues: Use the GitHub issue tracker
  • Questions: Open a discussion thread
  • Feature Requests: Submit with the "enhancement" tag

🌟 Credits

Crafted with care for all Windows tinkerers ❤️

Windows Command Line Banner

Made with the power of batch scripting!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published