A curated collection of battle-tested standalone scripts and utilities for Windows system administration, maintenance, and automation. Originally sourced from the Tron project and various community contributions, these scripts are designed to solve real-world IT problems efficiently.
- Overview
- Key Features
- Getting Started
- Script Categories
- Additional Resources
- Usage Examples
- 🗺️ Roadmap
- Related Projects
- Contributing
- License
- Acknowledgments
This repository contains a diverse collection of scripts spanning multiple languages (Batch, PowerShell, Registry files, AutoHotkey, Bash) for various system administration tasks. Whether you're deploying software across a network, cleaning up temporary files, managing Active Directory, or monitoring systems, you'll find practical tools here.
✅ Production-Ready: Scripts used in real IT environments
✅ Multi-Language: Batch, PowerShell, Registry, AutoHotkey, and Bash scripts
✅ Well-Documented: Each script includes purpose, requirements, and usage instructions
✅ Modular Design: Use scripts individually or combine them in your workflows
✅ Active Directory Support: Tools for AD management, user unlocking, and computer management
✅ Network Administration: Remote deployment, printer management, and system monitoring
✅ Comprehensive Cleanup: Temp files, print queues, event logs, and driver cleanup
- Windows XP or later (most scripts; specific requirements noted per script)
- PowerShell 3.0+ (for PowerShell scripts)
- Administrative privileges (required for many scripts)
- Network admin rights (for remote/domain operations)
-
Clone the repository:
git clone https://github.com/thookham/tron_standalone_scripts.git cd tron_standalone_scripts -
Review and customize: Open any script in a text editor to review variables and customize paths/settings for your environment.
-
Unblock downloaded files (if using PowerShell scripts):
Get-ChildItem -Recurse | Unblock-File
-
Run with appropriate permissions: Most scripts require administrative privileges. Right-click and select "Run as Administrator".
Scripts for deploying software, updates, and files across systems.
| Type | Script | Description |
|---|---|---|
| 📜 Batch | deploy_file_to_systems.bat | Purpose: Deploys a file to remote system(s) Requirements: 1. Administrative rights on the target machines Usage: Run like this: .\deploy_file_to_systems.bat |
| ⚡ PowerShell | deploy_pdq_packs.ps1 | Purpose: Deploys PDQ Packs Requirements: 1. Expects master copy directory to look like this: |
| ⚡ PowerShell | deploy_tron.ps1 | Purpose: Deploys Tron Requirements: 1. Expects master copy directory to look like this: |
| ⚡ PowerShell | deploy_wsus_offline_updates.ps1 | Purpose: Pulls down updates using WSUS Offline (download.wsusoffline.net), unpacks them, uploads them Requirements: 1. Write-access to the repo (network share) on the deployment server Usage: Step 0: Run WSUS Offline at least once, choose your options, and generate the update script |
| 📜 Batch | microsoft_offline_update_launcher.bat | Purpose: Installs a pre-downloaded Microsoft offline update package, generated by the WSUS Offline Update tool (download.wsusoffline.net) Requirements: 1. Run this script with Administrator rights |
| 📜 Batch | convert_archives_to_7z.bat | Purpose: Recursively converts all .rar and .zip files to the .7z format at max compression Requirements: 1. Specify the location of 7z.exe (below in variables section) Usage: 1. Place this file in the top-level directory containing the files you want to convert |
Scripts for system maintenance, cleanup, and optimization.
| Type | Script | Description |
|---|---|---|
| 📜 Batch | TempFileCleanup.bat | Purpose: Temp file cleanup Requirements: Admin access helps but is not required |
| 📜 Batch | clean_MKV_data.bat | Purpose: Cleans all metadata off supported media files (typically MKV) Requirements: Edit the script to specify location of mkvpropedit.exe and the directory to clean. Operates recursively. |
| 📜 Batch | clear_Windows_event_logs.bat | Purpose: Clears all event logs on a Windows system Requirements: Administrative rights |
| 📜 Batch | clear_stuck_print_jobs.bat | Purpose: Flushes the Windows printer queue when it's full and stuck Requirements: Must run as administrator |
| 📜 Batch | remove_all_printers_and_unused_drivers_and_ports.bat | Purpose: Removes ALL installed printers, their ports, and unused drivers Requirements: Administrative rights |
| 📜 Batch | remove_libraries_icon_from_desktop.bat | Purpose: Remove the "Libraries" icon that appears on the desktop after certain Windows Updates are applied Requirements: Run this script as an Administrator |
| ⚡ PowerShell | remove_old_unused_drivers.ps1 | Purpose: Removes old and unused versions of drivers from the Windows driver store Requirements: Administrative rights; Uses DISM and pnputil Note: Script identifies duplicate drivers and removes all but the newest version |
| ⚡ PowerShell | win8_remove_default_metro_apps.ps1 | Purpose: Removes built-in default Metro bloatware in Windows 8/8.1/Server 2012 and up Requirements: Administrator rights; Powershell scripts enabled Usage: Run the script with admin rights |
| ⚡ PowerShell | tron_parse_incoming_guids.ps1 | Purpose: Parses a list of user-submitted GUIDs against Tron's by_GUID list. Requirements: Specify path to master GUID file, incoming file to check against, and output file Usage: Make sure paths are specified correctly (variables below) then run the script |
| ⚡ PowerShell | tron_parse_incoming_metro_apps.ps1 | Purpose: Parses a list of user-submitted Metro apps against Tron's master lists Requirements: Specify path to master list files, incoming file to check against, and output file Usage: Make sure paths are specified correctly (variables below) then run the script |
| ⚡ PowerShell | unblock_downloaded_files.ps1 | Purpose: Recursively removes the "this file was downloaded from the Internet" flag from all files Requirements: Place script in the directory you want to start from |
General-purpose utilities for system administration and configuration.
| Type | Script | Description |
|---|---|---|
| ⚡ PowerShell | AD_SHOU_Checker_rename_and_move_system_based_on_AD-site.ps1 | Purpose: SHOU(Site, Hostname, OU) checker: Moves a workstation to the correct OU based on its site, renames it according to the naming standard, then reboots it Requirements: Domain admin rights Usage: 1. Run with Task Scheduler whenever you feel necessary, just be aware the affected machines will be rebooted |
| ⚡ PowerShell | AD_unlock_account.ps1 | Purpose: Unlocks Active Directory accounts Requirements: Network admin rights Usage: Pass account names to be unlocked as arguments, e.g. .\unlock_AD_account.ps1 MyAccountName MySecondAccountName |
| 📜 Batch | backup_differential.bat | Purpose: Rotating differential backup using 7-Zip for compression. Requirements: - forfiles.exe from Microsoft Usage: Run this script without any flags for a list of possible actions. Run it with a flag to perform that action. |
| ⚡ PowerShell | backup_differential.ps1 | Purpose: Rotating differential backup using 7-Zip for compression. Requirements: - forfiles.exe from Microsoft Usage: Run this script without any flags for a list of possible actions. Run it with a flag to perform that action. |
| 📜 Batch | simple_backup_script.bat | Purpose: Performs an update-backup operation on two folders, mirroring changes from one to the other Requirements: None Usage: run from a Windows shortcut or command-line. First argument is source, second argument is destination, third argument (if present, "yes") skips a purge backup (don't delete extra files) |
| 📜 Batch | dhcp_server_watchdog.bat | Purpose: DHCP server Watchdog & Failover script. Read notes below Requirements: 1. Domain administrator credentials & "Logon as a batch job" rights |
| 📜 Batch | launch_vmware_workstation.bat | Purpose: Starts and stops the services required by VMWare Workstation Requirements: VMware workstation installed |
| 📜 Batch | map_printers.bat | Purpose: Maps printers when a user logs in Requirements: Specify the target print server and printer names below Usage: Place this script in %ProgramData%\Microsoft\Windows\Start Menu\Startup |
| 📜 Batch | setip.bat | Purpose: Allows you to quickly change your IP address without using the GUI Requirements: Windows XP and up |
| 📜 Batch | setip_basic.bat | Purpose: Allows you to quickly change your IP address without using the GUI (simplified version) Requirements: Windows XP and up |
| 📜 Batch | Enable RDP.bat | Purpose: Enables Remote Desktop on the local machine Requirements: Administrative rights; Must run locally on the target machine Note: Opens firewall, disables deny registry key, sets service to auto-start, and starts the service |
| 📜 Batch | RDP_remote_enabler.bat | Purpose: Enables RDP on a Vista/7/8/10 system remotely Requirements: 1. Run this script with a network admin account |
| ®️ Registry | disable_shortcut_to_text.reg | Purpose: Removes the " - Shortcut" text appended to newly created shortcuts Requirements: Restart Windows Explorer or reboot to take effect |
| 📜 Batch | disable_win_s_hotkey.bat | Purpose: Disables the Win+S hotkey (Windows Search) and OneNote screen clipping shortcut Requirements: Applies to current user only Usage: Run directly; changes take effect immediately |
| ®️ Registry | enable_Powershell_scripts_run_by_double-clicking.reg | Purpose: Associates .ps1 files with PowerShell so they can be run by double-clicking Requirements: May need to adjust PowerShell execution policy separately |
| ®️ Registry | show_windows_version_on_desktop.reg | Purpose: Displays Windows version information on the desktop (similar to test/evaluation builds) Requirements: Registry modification; restart Explorer or reboot |
| ®️ Registry | WindowsVersionOnDesktop.reg | Purpose: Displays Windows version information on the desktop (alternate version) Requirements: Registry modification; restart Explorer or reboot |
Monitoring tools, useful command snippets, and miscellaneous utilities.
| Type | Script | Description |
|---|---|---|
| 📜 Batch | pingup.bat | Purpose: Simple script to check if a host is online and turn the window green (up) or red (down) based on the result. Also logs the result to a file Requirements: Windows XP and up |
| 📜 Batch | WhosOn.bat | Purpose: Checks who's logged-on to a remote computer Requirements: Run this script with a network admin account |
| 📜 Batch | Windows one-liners.bat | Purpose: A comprehensive collection of useful Windows CMD and PowerShell one-liners for system administration, monitoring, and networking Usage: DO NOT RUN AS A SCRIPT. Open in a text editor and copy/paste specific commands as needed Content: 376 lines of battle-tested commands covering WMIC, networking, Active Directory, remote management, and more |
| 🐧 Bash | Linux one-liners (bash).sh | Purpose: A collection of useful Linux/Bash one-liners for system administration, monitoring, and networking. Usage: Copy and paste specific commands as needed. Do not run this file as a script. |
| 📄 Text | active directory one-liners.txt | Purpose: Collection of Active Directory PowerShell and command-line snippets Usage: Reference file for AD administration commands |
| 📜 Batch | lottery.bat | Purpose: Fun/testing script that generates random numbers and counts "tick hits" (when %RANDOM% < 3) until a specified time Requirements: None Usage: Edit STOPTIME variable, then run. Results are logged to desktop |
| 📜 Batch | MyLittlePony.bat | Purpose: Prank/kiosk script that creates scheduled tasks to launch websites (My Little Pony, Windows93, YouTube videos) in fullscreen kiosk mode Usage: Contains multiple examples of different schedules (hourly, every 5 minutes, on idle, on logon) |
| ⚡ PowerShell | aexp_nsm_task_tagger.ps1 | Purpose: Pulls TASK numbers out of log files and adds them to the log file name Requirements: Specify your log file directory in the implementationLogs variable |
| ⌨️ AutoHotKey | ahk_v2_rapid_mouse_click_capslock_toggle.ahk | Purpose: Enables rapid mouse clicking when CapsLock is toggled (useful for cookie clickers, idle games, or accessibility) Requirements: AutoHotkey v2.0 Usage: Toggle with CapsLock; emits beep when activated. Default click delay is 375ms (adjustable on line 17). Press F10 to exit the script |
| ⚡ PowerShell | keepSystemAwake.ps1 | Purpose: Prevents system from going to sleep by simulating keyboard input (sends a period keystroke every 60 seconds) Requirements: None Usage: .\keepSystemAwake.ps1 [minutes] - Default is 3 minutes if no parameter specified |
| ⚡ PowerShell | send_popup_message_to_multiple_systems.ps1 | Purpose: Trigger a pop-up message window on a list of systems Requirements: Admin rights on the target machines Usage: Edit the variables below to target the OU you want, and specify where psexec is |
| 📄 Text | father_quotes.txt | Purpose: Collection of memorable quotes Usage: Reference/inspiration file |
| 📄 Text | lnk link command lines and batch hints shortcuts.txt | Purpose: Reference file containing Windows shortcut (.lnk) creation commands and batch scripting tips Usage: Reference file for script development |
The repository contains three subdirectories with additional scripts and configurations:
Contains 11 legacy scripts and registry files for older Windows systems or deprecated technologies:
| Type | File | Description |
|---|---|---|
| 📜 Batch | adobe_flash_player_nuker.bat | Purpose: Removes all traces of Adobe Flash Player from the system Requirements: Administrative rights Note: Legacy tool for Flash Player (now end-of-life) |
| 📜 Batch | java_runtime_nuker.bat | Purpose: Removes all installed Java Runtime Environment versions Requirements: Administrative rights Usage: Useful for clean Java reinstallations |
| 📜 Batch | microsoft_silverlight_nuker.bat | Purpose: Removes Microsoft Silverlight from the system Requirements: Administrative rights Note: Legacy tool for Silverlight (discontinued by Microsoft) |
| 📜 Batch | repair_windows_update.bat | Purpose: Attempts to repair broken Windows Update functionality Requirements: Administrative rights; Stops services, clears caches, re-registers DLLs |
| 📜 Batch | repair_wmi.bat | Purpose: Repairs Windows Management Instrumentation (WMI) Requirements: Administrative rights; Rebuilds WMI repository |
| ®️ Registry | disable_Adobe_Shockwave_Autoupdate.reg | Purpose: Disables Adobe Shockwave automatic updates Note: Legacy - Shockwave discontinued in 2019 |
| ®️ Registry | disable_Adobe_Shockwave_Stats_Collection.reg | Purpose: Disables Adobe Shockwave statistics collection Note: Legacy - Shockwave discontinued in 2019 |
| ®️ Registry | disable_Java_Auto-Update.reg | Purpose: Disables Java automatic updates Usage: Useful for enterprise environments with managed Java deployments |
| ®️ Registry | enable_standard_RunAs_on_Vista.reg | Purpose: Enables standard "Run As" context menu on Windows Vista Note: Legacy - Vista-specific tweak |
| ®️ Registry | vista_StopHijackingMySleepButton.reg | Purpose: Prevents Vista from changing sleep button behavior Note: Legacy - Vista-specific issue |
| ®️ Registry | winVista_win7_prevent_Welcome_Center_running_for_each_new_user.reg | Purpose: Prevents Welcome Center from appearing for new users Note: Legacy - Vista/7 specific |
Contains 12 LibreNMS alert templates and configuration files for network monitoring:
| Type | File | Description |
|---|---|---|
| 📄 Template | better_default_alert_template | Purpose: Improved default alert template for LibreNMS Usage: Replace default template for better-formatted alerts |
| 📄 Template | device_rebooted_template | Purpose: Alert template specifically for device reboot notifications Usage: Notifies when monitored devices restart |
| 📄 Template | disk_space_low_alert_template | Purpose: Alert template for low disk space warnings Usage: Triggers when disk usage exceeds threshold |
| 📄 Template | firewall_port_down_template | Purpose: Alert template for firewall port down events Usage: Monitors critical firewall interfaces |
| 📄 Template | microsoft_teams_alert_template | Purpose: Formats alerts for Microsoft Teams integration Usage: Sends LibreNMS alerts to Teams channels |
| 📄 Template | printer_toner_low_alert_template | Purpose: Alert template for printer toner low warnings Usage: Monitors network printer toner levels |
| 📄 Template | sensor_fault_condition_template | Purpose: Alert template for sensor fault conditions Usage: Monitors environmental sensors (temperature, humidity, etc.) |
| 📄 Text | LibreNMS commands.txt | Purpose: Collection of useful LibreNMS CLI commands and snippets Usage: Reference file for LibreNMS administration |
| 🖼️ Image | screenshot_alert.png | Purpose: Example screenshot of alert formatting Usage: Visual reference for alert appearance |
| 🖼️ Image | screenshot_rebooted.png | Purpose: Example screenshot of device reboot alert Usage: Visual reference for reboot alerts |
| 🖼️ Image | screenshot_recovery_alert.png | Purpose: Example screenshot of recovery alert Usage: Visual reference for when issues are resolved |
| 🖼️ Image | screenshot_warning_alert.png | Purpose: Example screenshot of warning alert Usage: Visual reference for warning-level alerts |
Contains 38 registry tweaks and PowerShell scripts for Windows customization and optimization.
Tip
See the registry/ROADMAP.md for planned improvements including reorganization, safety enhancements, and expansion to Windows 11.
Office Tweaks:
- Tweak_Office_Excel_Add_Open In New Excel Instance Right-Click Option_UNDO.reg - Undo right-click option addition
- Tweak_Office_Excel_open in new instance by default_UNDO.reg - Undo default new instance behavior
- Tweak_Office_Outlook_stop_auto-compressing_images.reg - Prevent Outlook from compressing images
- tweak_office_excel_Add_Open In New Excel Instance Right-Click Option.reg - Add right-click option
- tweak_office_excel_open in new instance by default.reg - Open Excel files in separate instances
- tweak_office_visio_open_files_in_separate_windows.reg - Open Visio files in separate windows
Windows Server Tweaks:
- Windows_Server_disable_shutdown_event_tracker.reg - Disable shutdown event tracker dialog
General Windows Tweaks:
- add_Take_Ownership_to_context_menu.reg - Add "Take Ownership" to right-click menu
- ask_user_instead_of_silently_installing_minor_updates.reg - Prompt before installing updates
- disable_NCSI_phone-home_Internet_connectivity_check.reg - Disable network connectivity status indicator
- disable_Tray_Balloon_Notifcations.reg - Disable system tray balloon notifications
- disable_Windows_Update_Auto-Reboot.reg - Prevent automatic reboots after updates
- disable_shortcut_to_text.reg - Remove "- Shortcut" suffix from shortcuts (duplicate in root)
- disable_telemetry_registry_entries.reg - Disable Windows telemetry
- disable_use_web_service_to_find_the_correct_program.reg - Disable web service lookup for programs
- disable_windows_10_upgrade_registry_entries.reg - Block Windows 10 upgrade prompts (legacy)
- enable_Powershell_scripts_run_by_double-clicking.reg - Enable PS1 double-click execution (duplicate in root)
- enable_command-prompt_auto-complete.reg - Enable command prompt autocomplete
- enable_command-prompt_use_of_systems_mapped_drives.reg - Enable mapped drives in CMD
- force_NumLock_on_at_startup.reg - Enable NumLock at startup
- show_windows_version_on_desktop.reg - Display Windows version on desktop (duplicate in root)
Windows 10 Specific Tweaks:
- win10_annoyance_remove_stupid_folders_in_MyPC (Videos, Pictures, etc).reg - Remove default folders from This PC
- win10_disable_annoying_lock_screen.reg - Disable Windows 10 lock screen
- win10_disable_libraries_in_navigation_pane.reg - Hide libraries from navigation pane
- win10_enable_legacy_incoming_remote_desktop_security (allow Linux clients to connect).reg - Enable legacy RDP security
- win10_force_folder_views_not_to_change.reg - Lock folder view settings
- win10_powershell_enable_double-clicking_ps1_files_to_launch.ps1 - PowerShell script version of PS1 enabler
- win10_prevent_wifi_credential_sharing.reg - Disable WiFi Sense credential sharing
- win10_show_window_contents_while_dragging.reg - Enable window contents preview while dragging
Windows 7-10 Cross-Version Tweaks:
- win7-10_disable_wallpaper_compression.reg - Disable wallpaper compression for better quality
- win7-8.1_disable_uncancellable_auto_restart_notification.reg - Disable restart notifications
Windows 7/8 Specific Tweaks:
- win7_disable_libraries.reg - Disable libraries feature in Windows 7
- win7_enable_tcpipv6.reg - Enable IPv6
- win7_shrink_window_borders.reg - Make window borders thinner
- win8_remove_pin-to-start_right_click_option.reg - Remove "Pin to Start" option
Cross-Version Tweaks (XP-10):
- winXP-10_disable_all_balloon_notification_tips.reg - Disable all balloon tips
- winXP-10_disable_all_balloon_tips.reg - Alternative balloon tip disabler
PowerShell Script:
- remove_old_unused_drivers.ps1 - Duplicate of root-level script
Pre-compiled utilities included in the repository:
| Tool | Version | Description |
|---|---|---|
| caffeine.exe | - | Purpose: Prevents system from going to sleep by simulating user activity Requirements: None (no admin rights required) Usage: Run to keep system awake; press any key to exit Note: Lightweight alternative to keepSystemAwake.ps1 |
| LGPO.exe | - | Purpose: Microsoft Local Group Policy Object utility Requirements: Administrative rights Usage: Command-line tool for managing local group policies Documentation: Run with /? for helpUse Case: Automate GPO changes without GUI |
| wget v1.20.3.exe | 1.20.3 (64-bit) | Purpose: Command-line file download utility (GNU Wget for Windows) Requirements: None Usage: wget [URL] to download filesNote: Full-featured 64-bit version |
| wget v1.20.3 x86.exe | 1.20.3 (32-bit) | Purpose: Command-line file download utility (GNU Wget for Windows) Requirements: None Usage: wget [URL] to download filesNote: 32-bit version for compatibility |
Reference and whitelist files used by Tron and related scripts:
| File | Size | Description |
|---|---|---|
| tron_guid_whitelist.txt | ~975 KB | Purpose: Master whitelist of Windows application GUIDs to preserve during Tron cleanup Usage: Used by Tron's debloat stage; also used by tron_parse_incoming_guids.ps1Format: One GUID per line with optional comments Maintenance: Regularly updated with user-submitted safe GUIDs |
| tron_metro_whitelist.txt | ~14 KB | Purpose: Whitelist of Windows Metro/UWP apps to preserve during cleanup Usage: Used by Tron's debloat stage; also used by tron_parse_incoming_metro_apps.ps1Format: One app package name per line Maintenance: Updated to include essential system apps and useful utilities |
| father_quotes.txt | ~477 KB | Purpose: Collection of memorable quotes and wisdom Usage: Reference/inspiration file Note: Personal collection; not directly related to system administration |
Additional Root-Level Registry File:
| Type | File | Description |
|---|---|---|
| ®️ Registry | PermanentlyRemove'Links'FromIEBookmarks.reg | Purpose: Removes the "Links" folder from Internet Explorer bookmarks/favorites Requirements: Registry modification; restart IE or reboot Note: Legacy - Internet Explorer specific |
:: Run temp file cleanup
TempFileCleanup.bat
:: Clear all event logs (requires admin)
clear_Windows_event_logs.bat
:: Remove old driver versions
powershell -ExecutionPolicy Bypass -File remove_old_unused_drivers.ps1:: Check who's logged on to a remote system
WhosOn.bat
:: Unlock an AD account
powershell -ExecutionPolicy Bypass -File AD_unlock_account.ps1 username
:: Enable RDP remotely
RDP_remote_enabler.bat# Unblock all downloaded files in current directory
.\unblock_downloaded_files.ps1
# Keep system awake for 60 minutes
.\keepSystemAwake.ps1 60
# Remove old printer drivers and ports (WARNING: removes ALL printers)
remove_all_printers_and_unused_drivers_and_ports.batThis repository is part of the Tron ecosystem:
- Tron - Automated PC cleanup/disinfection/maintenance toolkit
- Tron PowerShell - PowerShell-based Tron utilities
- Standalone Scripts (Upstream) - Original upstream repository
Contributions are welcome! Please read our Contributing Guidelines and Code of Conduct before submitting pull requests.
To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-script) - Commit your changes (
git commit -m 'Add amazing script') - Push to the branch (
git push origin feature/amazing-script) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2014 Vocatus Gate
- Vocatus Gate (bmrf) - Original creator of the Tron project and many of these scripts
- The Tron Community - For continuous contributions and improvements
- Individual Script Authors - Scripts sourced from various authors are credited within their headers
- Reddit Communities - r/usefulscripts, r/sysadmin, and others for community contributions
💡 Pro Tip: Check the header comments in each script for detailed usage information, requirements, and any special notes.