{"id":12704,"date":"2018-09-05T06:29:06","date_gmt":"2018-09-05T06:29:06","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=12704"},"modified":"2018-09-05T06:33:29","modified_gmt":"2018-09-05T06:33:29","slug":"remove-open-powershell-window-here-context-menu-in-windows-10","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/remove-open-powershell-window-here-context-menu-in-windows-10\/","title":{"rendered":"How to Remove &#8220;Open PowerShell window here&#8221; Context Menu in Windows 10"},"content":{"rendered":"<p>On Windows 10, you can access the &#8220;<strong>Open PowerShell window here<\/strong>&#8221; context menu by holding down the <strong>SHIFT<\/strong> key and then right-clicking a folder. This lets you quickly <a href=\"https:\/\/www.top-password.com\/blog\/5-ways-to-run-powershell-as-administrator-in-windows-10\/\" rel=\"noopener\" target=\"_blank\">open PowerShell<\/a> in the current folder without having to change the working directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/09\/open-powershell-window-here.png\" alt=\"\" width=\"378\" height=\"251\" class=\"alignnone size-full wp-image-12710\" \/><\/p>\n<p>If you&#8217;re a fan of using Command Prompt rather than Windows PowerShell, let&#8217;s see how to remove &#8220;<em>Open PowerShell window here<\/em>&#8221; context menu in Windows 10.<\/p>\n<p><strong>How to Remove &#8220;Open PowerShell window here&#8221; Context Menu in Windows 10<\/strong><\/p>\n<ol>\n<li>Use the Windows key + R keyboard shortcut to open the Run command. Type <strong>regedit<\/strong> and hit Enter.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/04\/regedit.png\" alt=\"\" width=\"399\" height=\"206\" class=\"alignnone size-full wp-image-9183\" \/>\n<\/li>\n<li>Go to the following location in the Registry Editor window that appears:<br \/>\n<code>HKEY_CLASSES_ROOT\\Directory\\shell\\Powershell<\/code><\/p>\n<p> \tBy default, the &#8220;<strong>Powershell<\/strong>&#8221; key is protected and none of its values can be modified. You have to <a href=\"https:\/\/www.top-password.com\/blog\/take-ownership-permission-of-registry-key-in-windows-10\/\" target=\"_blank\" rel=\"noopener\">take ownership of this registry key<\/a> and assign full permissions to your account.<\/li>\n<li>Right-click the &#8220;<strong>Powershell<\/strong>&#8221; key in the left pane and then select <strong>New<\/strong> -&gt; <strong>String Value<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/09\/powershell-create-string-registry.png\" alt=\"\" width=\"586\" height=\"347\" class=\"alignnone size-full wp-image-12708\" \/>\n<\/li>\n<li>Name the new string &#8220;<strong>ProgrammaticAccessOnly<\/strong>&#8220;, and leave its value data empty.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/09\/ProgrammaticAccessOnly.png\" alt=\"\" width=\"569\" height=\"311\" class=\"alignnone size-full wp-image-12709\" \/>\n<\/li>\n<li>Now you&#8217;ve successfully removed &#8220;<em>Open PowerShell window here<\/em>&#8221; in the context menu when you press SHIFT and then right-click any folder.<\/li>\n<\/ol>\n<p>If you want to continue removing &#8220;<em>Open PowerShell window here<\/em>&#8221; from the right-click menu for Drives and Directory background, repeat the steps above for the following registry keys:<\/p>\n<p><code>HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\Powershell<br \/>\nHKEY_CLASSES_ROOT\\Drive\\Background\\shell\\Powershell<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/09\/shift-right-click-background.png\" alt=\"\" width=\"386\" height=\"321\" class=\"alignnone size-full wp-image-12711\" \/><\/p>\n<p>Whenever you need to restore the &#8220;<em>Open PowerShell window here<\/em>&#8221; context menu, just delete the <strong>ProgrammaticAccessOnly<\/strong> entry from the above registry locations and you&#8217;re done.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>On Windows 10, you can access the &#8220;Open PowerShell window here&#8221; context menu by holding down the SHIFT key and then right-clicking a folder. This lets you quickly open PowerShell in the current folder without having to change the working directory. If you&#8217;re a fan of using Command Prompt rather than Windows PowerShell, let&#8217;s see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1565,1894],"tags":[3954,3955],"class_list":["post-12704","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-video-converter","category-windows-10","tag-open-powershell-window-here","tag-remove-open-powershell-here-context-menu"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=12704"}],"version-history":[{"count":7,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12704\/revisions"}],"predecessor-version":[{"id":12715,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12704\/revisions\/12715"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=12704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=12704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=12704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}