Windows 8 How to add Open PowerShell Here to Context menu

I use git-tfs and poshgit on windows.  So when I need to do a check-in I need to open PowerShell, navigate to the location of the project and so on and so forth.  That can get tedious at times, similarly to how users would add  open command window here.

To add PowerShell Here to the context menu like so:

PowershellWin8Context

  • First open RegEdit
  • Navigate to the HKEY_CLASSES_ROOT\Directory
  • Under Directory right click on shell

PowershellWin8Context1

  • Select New –> Key with the name Powershell
  • Under the newly created key there is a Default key, right click on it and click modify
  • Add a Value to it of Powershell Here

PowershellWin8Context2

  • Click OK to close
  • In an empty space before the default key right click and select New –> Key and name is Command
  • In the newly formed command key, right click on the Default key and click modify
  • In value data add:
    • C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath ‘%L’

PowershellWin8Context3

  • Click OK to close
  • You should now have the ability to open a PowerShell window with just the Context Menu
Advertisements
This entry was posted in Windows and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s