Skip to content

thookham/tron_standalone_scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tron Standalone Scripts 🛠️

License: MIT GitHub stars GitHub forks GitHub issues

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.

📑 Table of Contents

Overview

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.

Key Features

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

Getting Started

Prerequisites

  • 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)

Installation

  1. Clone the repository:

    git clone https://github.com/thookham/tron_standalone_scripts.git
    cd tron_standalone_scripts
  2. Review and customize: Open any script in a text editor to review variables and customize paths/settings for your environment.

  3. Unblock downloaded files (if using PowerShell scripts):

    Get-ChildItem -Recurse | Unblock-File
  4. Run with appropriate permissions: Most scripts require administrative privileges. Right-click and select "Run as Administrator".

Script Categories

🚀 Deployment & Updates

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

🧹 Maintenance & Cleanup

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
⚠️ WARNING: This script will remove EVERY installed printer. Use with extreme caution!
📜 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

🛠️ Utilities & Tools

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
⚠️ Note: This can be a security risk; ensure you understand the implications
®️ 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, One-Liners, & Misc

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)
⚠️ Warning: This is a prank script. Use responsibly and only in appropriate contexts!
⚡ 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

Additional Resources

📁 Subdirectories

The repository contains three subdirectories with additional scripts and configurations:

legacy/

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

librenms/

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

registry/

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:

Windows Server Tweaks:

General Windows Tweaks:

Windows 10 Specific Tweaks:

Windows 7-10 Cross-Version Tweaks:

Windows 7/8 Specific Tweaks:

Cross-Version Tweaks (XP-10):

PowerShell Script:

🔧 Standalone Tools

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 help
Use 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 files
Note: 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 files
Note: 32-bit version for compatibility

📄 Data Files

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.ps1
Format: 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.ps1
Format: 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

Usage Examples

Quick Cleanup Example

:: 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

Remote Administration Example

:: 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

System Maintenance Example

# 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.bat

Related Projects

This repository is part of the Tron ecosystem:

Contributing

Contributions are welcome! Please read our Contributing Guidelines and Code of Conduct before submitting pull requests.

To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-script)
  3. Commit your changes (git commit -m 'Add amazing script')
  4. Push to the branch (git push origin feature/amazing-script)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2014 Vocatus Gate

Acknowledgments

  • 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

⚠️ Disclaimer: Many of these scripts perform system modifications and require administrative privileges. Always review and test scripts in a non-production environment first. Use at your own risk.

💡 Pro Tip: Check the header comments in each script for detailed usage information, requirements, and any special notes.

About

Various standalone scripts

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 63.3%
  • PowerShell 35.0%
  • Shell 1.5%
  • AutoHotkey 0.2%