Add "PowerShell Here" and "Command Window Here" to right click menu for drives, folders, and current directories

0

I've tried applying and editing the .reg files, for example, here and here

But can't seem to get a "PowerShell Here" and "Command Window" here option in all right click menus without holding Shift for some.

Is there a way to add these to every right click menu (i.e., a drives, folders, and white space within a folder) with a single .reg file?

This question is different form this one

in that I am also including right clicking in the white space of a currently opened folder (not just clicking directly on a folder or drive).

blashmet

Posted 2015-05-22T19:48:31.107

Reputation: 9

Yes there is. There must be. I remember having something set this up for me in Windows 95, and I wish it was easier to set these up yourself nowadays. – Jarmund – 2015-05-22T19:54:17.537

Possible duplicate of Can I add a Windows Explorer context menu option to start command prompt in the selected directory? See my answer there. The Extended verb should not be present in any of the 3 locations, i.e. Drive, Directory and Directory\Background.

– Karan – 2015-05-22T22:26:10.483

"This question is different form this one" - No it isn't. Read my answer there carefully. Your use case is handled as well (I also mentioned it explicitly in my comment above). You mentioned 3 context menus; I mentioned 3 registry keys. Is this so hard to correlate? – Karan – 2015-05-23T00:14:28.573

Sorry, you are correct. I overlooked the third one. Thanks! – blashmet – 2015-05-26T17:54:14.980

Answers

0

Check that string value "extended" is either renamed or removed to turn of 'shift' requirement,

As for the other thing, add a string value named "NoWorkingDirectory" This will allow both to appear even when no folder was clicked upon,

MCTRASH692

Posted 2015-05-22T19:48:31.107

Reputation: 1

Read over "Why do I need 50 reputation to comment" to ensure you understand how you can start commenting.

– Pimp Juice IT – 2017-09-23T14:59:16.850

0

Solution for PowerShell:

  1. “Win + R”, run regedit to open Registry Editor.
  2. Go to the locations respectively:

    HKEY_CLASSES_ROOT\Directory\shell\Powershell HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell HKEY_CLASSES_ROOT\Drive\shell\Powershell

For each key, right click the key on the left panel, “Permissions…”, “Advanced”, change the owner to “Admistrators”, then assign “Full Control” - “Allow” to “Admistrators”. Press “OK”.

  1. For each key, delete the “Extended” key on the right panel.

source

qewg

Posted 2015-05-22T19:48:31.107

Reputation: 23

0

Windows Registry Editor Version 5.00

; Add_enhanced_cmd_and_powershell_to_menu.reg ; This adds Command and Powershell sub menu options

[HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd] "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuCmd" "Icon"="cmd.exe" "MUIVerb"="Command Prompts"

[HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell] "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuPowerShell" "Icon"="powershell.exe" "MUIVerb"="PowerShell Prompts"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open] "Icon"="cmd.exe" "MUIVerb"="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command] @="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas] "HasLUAShield"="" "Icon"="cmd.exe" "MUIVerb"="Command Prompt Elevated"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command] @="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open] "Icon"="powershell.exe" "MUIVerb"="PowerShell"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command] @="powershell.exe -noexit -command Set-Location '%V'"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas] "HasLUAShield"="" "Icon"="powershell.exe" "MUIVerb"="PowerShell Elevated"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command] @="powershell.exe -noexit -command Set-Location '%V'"

[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd] "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuCmd" "Icon"="cmd.exe" "MUIVerb"="Command Prompts"

[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell] "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuPowerShell" "Icon"="powershell.exe" "MUIVerb"="PowerShell Prompts"

bobkush

Posted 2015-05-22T19:48:31.107

Reputation: 360