Skip to content

Instantly share code, notes, and snippets.

@realslacker
Last active April 23, 2024 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realslacker/3bf42663abb134fb138d5f1d20d732f6 to your computer and use it in GitHub Desktop.
Save realslacker/3bf42663abb134fb138d5f1d20d732f6 to your computer and use it in GitHub Desktop.
REM This batch file allows you to launch any program as the current user. Placing
REM this file in your System32 directory or adding it to your path will allow you
REM to easily launch applications.
REM Usage: RunAsInvoker.cmd [Application]
REM Example: RunAsInvoker.cmd mmc.exe
REM Example: RunAsInvoker.cmd certmgr.msc
@ECHO OFF
set __COMPAT_LAYER=RUNASINVOKER
start "" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment