-
Notifications
You must be signed in to change notification settings - Fork 5
stdrename_install_toggle.ps1
Corey Watson edited this page Dec 19, 2025
·
1 revision
Toggle installation of stdrename command-line file/folder renaming utility.
Toggles installation of stdrename - a command-line file/folder renaming utility. If installed, uninstalls it. If not installed, downloads and installs it. Installs to System32 for system-wide availability.
Toggles installation of stdrename - a command-line file/folder renaming utility. If installed, uninstalls it. If not installed, downloads and installs it. Installs to System32 for system-wide availability.
- Windows 10/11
- Admin privileges required (writing to System32)
- Internet connectivity for download
-
DownloadUrl: URL to download stdrename.exe -
InstallPath: Installation directory (default: System32)
- Downloads from GitHub releases (latest version)
- Installs to C:\Windows\System32 for PATH accessibility
- Toggle behavior: installed -> uninstall, not installed -> install
- Hardcoded values (download URL, install path)
- GitHub releases for stdrename
- Checks if stdrename.exe exists in install path
- If exists: deletes the executable (uninstall)
- If not exists: downloads from GitHub and installs
- Downloads from official GitHub releases
- No secrets in logs
- Modifies System32 directory
- 0: Success
- 1: Failure
[ INPUT VALIDATION ]
--------------------------------------------------------------
Download URL : https://github.com/Gadiguibou/stdrename/releases/latest/download/stdrename.exe
Install Path : C:\Windows\System32
Exe Path : C:\Windows\System32\stdrename.exe
[ OPERATION ]
--------------------------------------------------------------
Checking for existing installation...
stdrename not found, downloading...
Download complete
[ RESULT ]
--------------------------------------------------------------
Status : Success
Action : Installed
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2025-11-29 v1.0.0 Initial Style A implementation
- View Script Source
- Scripts - Back to script index