Jump to content

Windows 10 build 14986 replaces Command Prompt with PowerShell Everywhere


Jordan

Recommended Posts

Windows 10 build 14986 replaces Command Prompt with PowerShell Everywhere

 

As you might be already knowing, Microsoft is going to replace the classic Command Prompt console with Windows PowerShell as the default in every place in the UI. In the recently released Windows 10 build 14986, the context menu entries in File Explorer now point to PowerShell.

In previous Windows 10 releases, the context menu contained the classic command prompt as an option to open the current folder. In Windows 10 build 14986, the software giant removed the command prompt entry and added PowerShell instead.

You can check it yourself.

 

  1. Install Windows 10 build 14986. You can install from scratch if you need.
  2. Press and hold the SHIFT key on the keyboard and right click on the empty space of your Desktop or in a folder.

 

context-menu-600x499.png context-menu-desktop.png

 

See the context menu. You will find the PowerShell command there instead of the command prompt.

 

Earlier, Microsoft set PowerShell as the default in the Win + X menu (the context menu of the Start button), but it could be easily restored in Settings. This change will require a Registry tweak to restore the command prompt to the context menu.

 

For many users, PowerShell is not as easy as Command Prompt. Thanks to InsideWindows for sharing the information.

 

SOURCE

Link to comment
Share on other sites


  • Replies 6
  • Views 1.5k
  • Created
  • Last Reply
6 hours ago, OrbingStorm said:

I like my command prompt better than powershell.sigh.

 

Add Command Prompt to Context Menu in Windows 10 Creators Update

 

Starting with Windows 10 build 14986, Microsoft enabled PowerShell by default in the context menu in File Explorer. The good old command "Open command window here" was removed. You can get the command prompt back in the context menu of File Explorer in Windows 10 Creators Update with a simple Registry tweak.

 

context-menu-600x499.png

 

Earlier, Microsoft has removed the command prompt entries from the Win + X menu in Windows 10 Creators Update.

 

See Add Command Prompt back to Win+X Menu in Windows 10 Creators Update.

It is not clear what Microsoft's plan is regarding cmd.exe's future. Quite possible the Redmond giant is going to merge the cmd.exe functionality with PowerShell and leave its executable file just for compatibility reasons. Let's see how add Command Prompt back to the context menu in Windows 10 Creators Update.

 

Add Command Prompt to Context Menu in Windows 10 Creators Update

Method 1. Modify the a DWORD value for the existing key

Do the following.

 

Open Registry Editor.

Go to the following Registry key:

HKEY_CLASSES_ROOT\Directory\shell\cmd

Tip: How to jump to the desired registry key with one click.

 

command-prompt-context-menu-entry-in-Reg

 

Take ownership of this key to modify its permissions.

 

take-ownership-600x397.png

 

Add "Full control" to permissions of Administrators:

 

get-full-access-600x427.png

 

Rename the DWORD value HideBasedOnVelocityId as shown below:

 

rename-the-parameter-600x412.png

 

The command prompt context menu item will re-appear in the context menu:

 

Add-Command-Prompt-to-Context-Menu-in-Wi

 

Now, repeat steps above under the following key:

HKEY_CLASSES_ROOT\Drive\shell\cmd

I tested this tweak in Windows 10 build 14986 and it worked as expected. If it doesn't work for you, see Method 2.

Method 2. Re-create the context menu entry

Save the following Registry tweak as a *.REG file and double click it to apply. It replicates the default command prompt context menu entry.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\cmd2]
@="Open command window here"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Drive\shell\cmd2\command]
@="cmd.exe /s /k pushd \"%V\""


[HKEY_CLASSES_ROOT\Directory\shell\cmd2]
@="Open command window here"
"Extended"=""
"NoWorkingDirectory"=""

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

You can replace the portion "Open command window here" with any text you want.

You can remove the "Extended" line from the tweak to make the context menu command always visible. It won't require to hold the Shift key to access the command.

To save your time, I made ready-to-use Registry files. One of them contains the tweak above, the other one is the undo file.

 

Download Registry Files

That's it.

 

SOURCE

Link to comment
Share on other sites


  • Administrator

Not sure if I am fond of it. But just tried it again and found that cmd commands seem to be working in it too.

 

Here is some other information about cmd command's replacement in it.

Link to comment
Share on other sites


The security of Windows + the comfort of the Unix command line. Brilliant ! What could go wrong ?

<traces of irony detected>

Link to comment
Share on other sites


  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...