Skip to content

Instantly share code, notes, and snippets.

@Eboubaker
Created September 24, 2021 07:29
Show Gist options
  • Select an option

  • Save Eboubaker/afc5e43ab92170b613c7484f0daef562 to your computer and use it in GitHub Desktop.

Select an option

Save Eboubaker/afc5e43ab92170b613c7484f0daef562 to your computer and use it in GitHub Desktop.
Add an entry "Run without privilege elevation" to windows file context menu.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\forcerunasinvoker]
@="Run without privilege elevation"
[HKEY_CLASSES_ROOT\*\shell\forcerunasinvoker\command]
@="cmd /min /C \"set __COMPAT_LAYER=RUNASINVOKER && start \"\" \"%1\"\""
@Eboubaker
Copy link
Copy Markdown
Author

This will force run any application WITHOUT privilege elevation even if the application(or installer) requested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment