Skip to content

Instantly share code, notes, and snippets.

View spencershepard's full-sized avatar

Spencer Shepard spencershepard

View GitHub Profile
@spencershepard
spencershepard / batchinstaller.cmd
Created March 28, 2025 19:04
(Windows) Automatically run all installers in a folder with elevated permissions
Echo OFF
REM The next command sets the working directory to the directory of the script (ie instead of C:/Windows/System32 when run as admin)
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "batchinstaller.ps1"
PAUSE > NUL