Windows 10: Open Bash window here as administrator - Add in Windows 10

Discus and support Open Bash window here as administrator - Add in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Open Bash window here as administrator - Add in Windows 10 How to Add 'Open Bash window here as administrator' context menu in Windows 10... Discussion in 'Windows 10 Tutorials' started by klepp0906, Mar 18, 2018.

  1. klepp0906 Win User

    Open Bash window here as administrator - Add in Windows 10


    How to: Open Bash window here as administrator - Add in Windows 10

    How to Add 'Open Bash window here as administrator' context menu in Windows 10

    Open Bash window here as administrator - Add in Windows 10 [​IMG]
    Information 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:
    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.


    Open Bash window here as administrator - Add in Windows 10 [​IMG]
    Note 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

    Open Bash window here as administrator - Add in Windows 10 [​IMG]


    Open Bash window here as administrator - Add in Windows 10 [​IMG]





    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.


    2. To Add Right Click "Open Bash window here as administrator" Context Menu
    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

    3. To Add Shift + Right Click "Open Bash window here as administrator" Context Menu
    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

    4. To Remove "Open Bash window here as administrator" Context Menu
    NOTE: 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. If prompted, click 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

    :)
     
    klepp0906, Mar 18, 2018
    #1

  2. WINDOWS 10 PRO (turn on windows features is not enabling any feature after restart.)

    Try performing a repair upgrade.

    http://answers.microsoft.com/en-us/insider/wiki...

    To install bash, open a Command Prompt (Administrator) > type lxrun /install > hit Enter.

    Note: The command will ask for a username and password for the user account in the Bash environment.

    You may also skip the account setup during the installation of bash, open a Command Prompt (Administrator) > type lxrun /install /y > hit Enter.

    Note: The root account will be the default user account without a password.

    Feel free to post back should you need further help.
     
    Andre Da Costa, Mar 18, 2018
    #2
  3. Windows10Upgrade Folder on C:

    In case you can not delete any folder by Windows tool, you can try ti install
    Git Bash
    , then you press Windows button on your keyboard, and type Git. You must open git bash with Administrator.

    After that, you cd to C:, and type command line "rm -rf Windows10Updgade" then prompt enter button, wait for some seconds => Done.

    Hope it can help you.
     
    Hieu Tran BK108, Mar 18, 2018
    #3
  4. Brink
    Brink New Member

    Open Bash window here as administrator - Add in Windows 10

    Hello klepp, *Smile

    Here's one without the UAC icon.

    Add_Open_Bash_window_here_as_administrator_context_menu.reg
     
    Brink, Mar 18, 2018
    #4
  5. Mystere Win User
    The Shield Icon means it requires administrator privs. It can't (to my knowledge) be set to something else without replacing it globally (ie some kind of imgres replacement) . You can remove the admin privs, as Brink has done, but you can't use a custom icon.
     
    Mystere, Mar 18, 2018
    #5
  6. Brink
    Brink New Member
    The icon in the context menu can be any icon you want, or can be removed. It won't affect it from running as administrator. *Smile
     
    Brink, Mar 18, 2018
    #6
  7. klepp0906 Win User
    You are the man *Smile

    Thank you!

    Any chance there’s a tutorial around about how to change the icon? Appreciate your removing the shield for me *Smile

    If i can add the bash icon and learn something along the way that would be great.

    #bow
     
    klepp0906, Mar 18, 2018
    #7
  8. Brink
    Brink New Member

    Open Bash window here as administrator - Add in Windows 10

    You're most welcome.

    You can edit the .reg file, add the "Icon" lines, and replace the bit in red below with the full path of the .ico file you want to use.

    Code: Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\BashAsAdmin] @="Open Bash window here as administrator" "Extended"=- "HasLUAShield"=- "Icon"="full path of .ico file" [HKEY_CLASSES_ROOT\Directory\Background\shell\BashAsAdmin\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%V && bash.exe' -Verb RunAs\"" [HKEY_CLASSES_ROOT\Directory\shell\BashAsAdmin] @="Open Bash window here as administrator" "Extended"=- "HasLUAShield"=- "Icon"="full path of .ico file" [HKEY_CLASSES_ROOT\Directory\shell\BashAsAdmin\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%V && bash.exe' -Verb RunAs\"" [HKEY_CLASSES_ROOT\Drive\shell\BashAsAdmin] @="Open Bash window here as administrator" "Extended"=- "HasLUAShield"=- "Icon"="full path of .ico file" [HKEY_CLASSES_ROOT\Drive\shell\BashAsAdmin\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%V && bash.exe' -Verb RunAs\"" [HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\BashAsAdmin] @="Open Bash window here as administrator" "Extended"=- "HasLUAShield"=- "Icon"="full path of .ico file" [HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\BashAsAdmin\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%V && bash.exe' -Verb RunAs\""[/quote]
     
    Brink, Mar 18, 2018
    #8
  9. klepp0906 Win User
    I feel guilty for bugging you, I apologize!

    First thing in the morning I’ll see if I can’t find where windows stashes that little red three circle icon and it should be easy peasy beyond that.

    Sincere gratitude *Smile
     
    klepp0906, Mar 18, 2018
    #9
  10. klepp0906 Win User
    found it! for those interested

    "C:\\Program Files\\WindowsApps\\CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64__79rhkp1fndgsc\\images \\icon.ico"

    Thanks brink *Smile
     
    klepp0906, Mar 18, 2018
    #10
  11. klepp0906 Win User
    hrm I get

    cannot import (path to file): The specified file is not a registry script. You can only import binary registry files from within the registry editor.

    EDIT - fixed. Has to have Windows Registry Editor Version 5.00 header, didnt realize that was integral *Smile
     
    klepp0906, Apr 4, 2018
    #11
Thema:

Open Bash window here as administrator - Add in Windows 10

Loading...
  1. Open Bash window here as administrator - Add in Windows 10 - Similar Threads - Open Bash window

  2. Add Powerline to Git Bash Terminal?

    in Windows 10 Ask Insider
    Add Powerline to Git Bash Terminal?: So I’m trying to get some form of powerline going in my git bash terminal, but everything I find is basically geared toward mac, Linux, or PowerShell. Any help or advice would be appreciated! submitted by /u/ModelMissing [link] [comments]...
  3. Bash Opening and then closing in Windows 10

    in Windows 10 Customization
    Bash Opening and then closing in Windows 10: I have followed the instructions to get Bash working in my new computer but it fails. I turned on the Developer option and added Windows option for Linux but it doesn't work. Bash comes up and says :press any key to continue" and when I do it immediately closes. I have...
  4. Add or Remove Open Linux shell here context menu in Windows 10

    in Windows 10 Tutorials
    Add or Remove Open Linux shell here context menu in Windows 10: How to: Add or Remove Open Linux shell here context menu in Windows 10 How to Add or Remove "Open Linux shell here" context menu in Windows 10 The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools...
  5. Open PowerShell window here context menu - Add in Windows 10

    in Windows 10 Tutorials
    Open PowerShell window here context menu - Add in Windows 10: How to: Open PowerShell window here context menu - Add in Windows 10 How to Add or Remove 'Open PowerShell window here' context menu in Windows 10 Windows 10 comes with Windows PowerShell 5.0 included. Windows PowerShell is a task-based command-line shell and...
  6. Open command window here as administrator - Add in Windows 10

    in Windows 10 Tutorials
    Open command window here as administrator - Add in Windows 10: How to: Open command window here as administrator - Add in Windows 10 How to Add "Open command window here as administrator" context menu in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at...
  7. Add Open PowerShell window here as administrator in Windows 10

    in Windows 10 Tutorials
    Add Open PowerShell window here as administrator in Windows 10: How to: Add Open PowerShell window here as administrator in Windows 10 How to Add "Open PowerShell window here as administrator" context menu in Windows 10 Windows 10 comes with Windows PowerShell 5.0 included. Windows PowerShell is a task-based command-line shell...
  8. Open command window here - Add in Windows 10

    in Windows 10 Tutorials
    Open command window here - Add in Windows 10: How to: Open command window here - Add in Windows 10 How to Add 'Open command window here' context menu in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform...
  9. Open Bash window here context menu - Add in Windows 10

    in Windows 10 Tutorials
    Open Bash window here context menu - Add in Windows 10: How to: Open Bash window here context menu - Add in Windows 10 How to Add 'Open Bash window here' context menu in Windows 10 [img] Information Microsoft first made investments that improve cmd, PowerShell, and many other command-line tools and developer scenarios....
  10. Here's how Microsoft will support Bash on Windows 10

    in Windows 10 News
    Here's how Microsoft will support Bash on Windows 10: Microsoft is building support for the Linux Bash utilities into Windows 10 with a little help from Canonical. Here's what's happening under the covers to enable this. The rumors before the start of Microsoft's Build 2016 developer conference were true: Microsoft is going...