How to Add 'Open Bash window here as administrator' context menu in Windows 10
Microsoft first made investments that improve cmd, PowerShell, and many other command-line tools and developer scenarios. Second Microsoft decided to grow their command line family by adding real, native Bash and with it support for Linux command-line tools which run directly on Windows in an environment that behaves like Linux!
Starting with Windows 10 Insider Preview Build 14316, you can natively run Bash in Windows. BASH is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distro’s, and in OSX. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
You can now run Bash scripts, Linux command-line tools like sed, awk, grep, and you can even try Linux-first tools like Ruby, Git, Python, etc. directly on Windows. You can also access your Windows filesystem from within Bash allowing you to work on the same set of files using your preferred Windows tools or Linux command-line tools.
For more details about Bash, see:
- Run Bash on Ubuntu on Windows | Building Apps for Windows
- Bash on Ubuntu on Windows | Microsoft Docs
- Bash Frequently Asked Questions | Microsoft Docs
- Bash Command Reference | Microsoft Docs
This tutorial will show you how to add or remove a Open Bash window here as administrator context menu for all users in Windows 10.
You must be signed in as an administrator to add, remove, or use the "Open Bash window here as administrator" context menu.
The "Open Bash window here" context menu item requires that Bash on Unbunto is enabled to work. Bash on Unbunto is not enabled by default in Windows 10.
The "Open Bash window here" context menu will be available when you right click or shift + right click on a folder or drive, and when you right click or shift + right click on the background of a folder, drive, library, or desktop.
EXAMPLE: "Open Bash window here as administrator" context menu
Here's How:
1 Do step 2 (add-right click), step 3 (add-Shift+right click) , or step 4 (remove) below for what you would like to do.
A) Click/tap on the Download button below to download the file below, and go to step 5 below.
Add_Open_Bash_window_here_as_administrator_context_menu.reg
Download
A) Click/tap on the Download button below to download the file below, and go to step 5 below.
Add_Shiift+Open_Bash_window_here_as_administrator_context_menu.reg
Download
This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 5 below.
Remove_Open_Bash_window_here_as_administrator_context_menu.reg
Download
5 Save the .reg file to your desktop.
6 Double click/tap on the downloaded .reg file to merge it.
7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
8 You can now delete the downloaded .reg file if you like.
That's it,
Shawn
Related Tutorials
- How to Add 'Open Bash window here' context menu in Windows 10
- How to Enable or Disable Bash on Ubuntu on Windows 10
- How to Create a Bash on Ubuntu on Windows 10 shortcut
- How to Add 'Open command window here' context menu in Windows 10
- How to Add 'Open command window here as administrator' context menu in Windows 10
- How to Add 'Open PowerShell window here' context menu in Windows 10
- How to Add 'Open PowerShell window here as administrator' context menu in Windows 10
- How to Add or Remove Open Linux shell here context menu in Windows 10