Deploy commands to multiple computers/devices at the same time.
More details, installation, tips, troubleshooting: https://www.rahul.tech/page/updatrr/
What is this?
UPDATRR is a simple script that I created while developing a renderfarm using my school's computers. It lets you deploy commands to multiple computers/devices at the same time.
How does it work?
- You upload your commands to a server
- The computers check for new commands
- They fetch the commands and run them
- That's it!
What does it require?
- Windows XP* or later
- An internet connection
- Powershell or BusyBox or Wget executables (more on this later)
* (It is strongly recommended that you update to Windows 7 at the very minimum, XP is very insecure)
How do I set it up?
1. Set your server up
You just need a place on the internet where you can upload two files:
info.txt: This file contains only two lines of text. The first contains the version number of the current revision of
commands.cmd. This must be a positive decimal number. The second line contains the URL to
commands.cmd. The following is an example:
commands.cmd : This file contains all the commands which are to be run. Note that the last command MUST be
exit, without the
@echo off REM configure hotspot netsh wlan set hostednetwork mode=allow ssid=rahuldottech key=password123 keyUsage=persistent REM start hotstop netsh wlan start hostednetwork REM wait for a minute timeout /t 60>nul REM stop hotspot netsh wlan stop hostednetwork REM exit exit
2. Set up UPDATRR
- Download one of the following packages:
UPDATRR with Powershell:
64bitThe smallest package, doesn't require any other executables. Tested on Windows 8 and later. Supports HTTPS. (Download
powershell/updatrr_powershell.cmd). This is the recommended package.
UPDATRR with BusyBox:
64bitThis is smaller than the
wgetpackage, but doesn't support HTTPS. Use only if powershell isn't an option. (Download
UPDATRR with Wget:
32bitThis package supports HTTPS. (Download
wget/wget32.exe, then rename it to
UPDATRR with Wget:
64bitThis package supports HTTPS. (Download
wget/wget64.exe, then rename it to
- UPDATRR with Powershell:
- Edit the URL to
- If you're using the BusyBox package, it's on the 21 st line
- If you're using the Wget package, it's on the 16 th line
3. Schedule UPDATRR
- Schedule UPDATRR to run using with
- Press Win+ R
control schedtasksand press Enter
- Go to
Action > Create Basic Task...in the menu
- Follow the instructions to schedule UPDATRR to run at regular intervals
- Run on startup
- You can also make UPDATRR run on startup by placing a shortcut to it in the startup folder.
- Open Windows Explorer and navigate to
C:\ProgramData\Microsoft\Windows\Start Menu\Programsand place a shortcut to UPDATRR here if you want it to run on startup for all users.
- Place the shortcut in
C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programsif you only want it to run on startup for the current user.
It's simple! Now everytime that you want to deploy a set of commands to the computers, save them in
commands.cmd on your server, and increment the version number in the first line of
info.txt by at least one decimal point.
When the computers download
info.txt, and see that the command version has increased, they will download the new set of commands and run them.
Advanced Stuff & Tips
Simply save the URL to
info.txt with the
ftp:// prefix instead of
Encoding Usernames and Passwords in your URLs
Use the appropriate syntax in your URLs:
Running Different Commands in Different Versions of Windows
@echo off for /f "tokens=2 delims=:" %%a in ('systeminfo ^| find "OS Name"') do set OS_Name=%%a for /f "tokens=* delims= " %%a in ("%OS_Name%") do set OS_Name=%%a for /f "tokens=3 delims= " %%a in ("%OS_Name%") do set OS_Name=%%a if "%os_name%"=="XP" set version=XP if "%os_name%"=="7" set version=7 call r%version%
:rXP echo running Windows XP REM more commands for XP go here ...
:r7 echo running Windows 7 REM more commands for 7 go here...