Skip to content

Instantly share code, notes, and snippets.

@jftuga
Last active March 16, 2019 01:38
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 jftuga/93aef10a37a12a658ade7ff53fca1b31 to your computer and use it in GitHub Desktop.
Save jftuga/93aef10a37a12a658ade7ff53fca1b31 to your computer and use it in GitHub Desktop.
Add command to Windows context menu
Windows Registry Editor Version 5.00
; https://www.reddit.com/r/PowerShell/comments/b1ew3f/is_there_a_way_to_create_an_explorer_shell/?
[HKEY_CLASSES_ROOT\.rmt]
[HKEY_CLASSES_ROOT\.rmt\shell]
[HKEY_CLASSES_ROOT\.rmt\shell\Posted]
[HKEY_CLASSES_ROOT\.rmt\shell\Posted\command]
@="c:\\windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -File \"M:\\Departments\\IT\\do_posted.ps1\" \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment