Skip to content

Instantly share code, notes, and snippets.

@tablacus
Last active April 7, 2022 18:14
Show Gist options
  • Save tablacus/d23ee1214e2e9a18d68ea76f350ad548 to your computer and use it in GitHub Desktop.
Save tablacus/d23ee1214e2e9a18d68ea76f350ad548 to your computer and use it in GitHub Desktop.
EnableShellExecuteHooks "toggle" with Tablacus Explorer Add-on Shell execute hook 1.02 or higher.
var toggle;
try {
  toggle = !wsh.RegRead("HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\EnableShellExecuteHooks");
} catch (e) {
  toggle = true;
}
var ex = { EnableShellExecuteHooks: toggle, Explorer: true };
OpenNewProcess("addons\\shellexecutehook\\worker.js", ex, false, WINVER >= 0x600 ? "RunAs" : null);
@tablacus
Copy link
Author

tablacus commented Aug 5, 2017

12

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