Created
October 8, 2022 08:55
-
-
Save phoenixthrush/7fa2114f612468db9842234bc5cfef9b to your computer and use it in GitHub Desktop.
Requesting UAC Batch One-Liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment