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

Discus and support Open command window here as administrator - Add in Windows 10 in Windows 10 Tutorials to solve the problem; 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... Discussion in 'Windows 10 Tutorials' started by tom23rd, May 11, 2017.

  1. tom23rd Win User

    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 the command prompt, you can perform tasks on your computer without using the Windows graphical interface.

    This tutorial will show you how to add or remove a Open command window here as administrator context menu for all users in Windows 10.

    This context menu will open an elevated command prompt using the same working directory that you right clicked on.

    You must be signed in as an administrator to add, remove, and use the "Open command window here as administrator" context menu.


    The "Open command window here as administrator" 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 command window here as administrator" context menu

    Open command 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 command 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_command_window_here_as_administrator.reg

    Download

    3. To Add Shift + Right Click "Open command 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_Shift+Open_command_window_here_as_administrator.reg

    Download

    4. To Remove "Open command window here as administrator" Context Menu
    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_command_window_here_as_Administrator.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

    :)
     
    tom23rd, May 11, 2017
    #1

  2. Windows Store broken, no icon, won't open, some apps like calculator gone too...

    "C:\WINDOWS\WinStore" is not a valid path in Windows 10, may be it applies to Windows 8/8.1. Here is the correct PowerShell command to register the Store app package.

    Make sure you start PowerShell as administrator (right-click and choose "Run as Administrator"). Then execute this command:

    Get-AppxPackage -allusers *windowsstore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
     
    Ramesh Srinivasan, May 11, 2017
    #2
  3. Kem Mon Win User
    Cortana unresponsive after restart/boot

    We are trying to recreate the issue
    here at our end but it has different results. However, it seems that the issue is caused by a connectivity issue with Cortana. Kindly try running this command:


    • Open
      Command Prompt
      as
      Administrator.

    • Type
      net local administrator /add networkservice
      and hit
      Enter.

    • Type
      net local administrator /add localservice
      and hit
      Enter.

    • Type
      Exit
      and
      restart
      your computer.

    If the issue persists, we suggest that you try these

    Recovery Options in Windows 10
    and check if there is any changes.

    Note:
    Make sure to
    backup
    your files and important documents before performing
    one of these Recovery Options.

    Let us know how it goes.

    Regards.
     
    Kem Mon, May 11, 2017
    #3
  4. Brink
    Brink New Member

    Open command window here as administrator - Add in Windows 10

    Hello Tom, and welcome to Ten Forums. *Smile

    "%V" should be recognized since it's what was originally used by default in Windows. It's working fine on my system using "%V". What directory was giving you this issue?

    • %L – Long file name form of the first parameter. Note that Win32/64 applications will be passed the long file name. Could be a location to a file.
    • %V – For verbs that are none implies all. If there is no parameter passed this is the working directory. Could be the directory name.

    I didn't use the "runas" key for the context menu since it would tie up the key for only this context menu. The PowerShell command is one workaround for elevation without using the "runas" key.

    Do you get a UAC prompt when you use the context menu?
     
    Brink, May 11, 2017
    #4
  5. tom23rd Win User
    i don't get a UAC prompt, but that is by design (i've toggled UAC all the way down.)

    strange that it didn't work for me, while i was examining the other shell reg entries, i noticed the that the default "hide unless shift used" entries were using %V, so i made a few runas entries using %V as well and they worked as expected.

    i suspect, then, that maybe my download got mangled (weird), or maybe i have execution-policy or somesuch PS related config amiss (weirder). i'm keen to try it again, will let you know what happens.

    thanks for the welcome btw. 20+ win/all admin and system engineer. MCSE 2003, working on 2012 and then 2016 MCSA, maybe MCSE. Feel at home already. I'm glad my curiousity wasn't taken as a flame (it does happen sometimes, we like to be right, us humans lol). hopefully i'll be a productive member here. *Smile
     
    tom23rd, May 12, 2017
    #5
  6. Brink
    Brink New Member
    I look forward to hearing your findings.

    Nar, I'll never take it as flaming. We're always learning.
     
    Brink, May 12, 2017
    #6
  7. mmmmmmm.. i have a path there's no working............ the path it's:
    D:\Indiana Jones - Tomba Imperatore - GOG\Indiana Jones and the Emperor's Tomb\GameData\indy\movies

    If i choose this "movies" folder and use "Open Windows Prompt from here" from context menu nothings append..... all it's working only if i use the very fist folder but if i try to open the second sub-folder i obtain same result....... because that append ?
     
    DjDiabolik, Aug 1, 2017
    #7
  8. Brink
    Brink New Member

    Open command window here as administrator - Add in Windows 10

    Hello DJ, *Smile

    See if merging the .reg file again to add the context menu may help in case its registry entries may have been modified by something.

    If it doesn't help, then please go ahead and post a screenshot showing the command prompt after your right click on the folder and click on "Open command window here as administrator" to see if it may reveal anything.
     
    Brink, Aug 1, 2017
    #8
  9. ^^
    I can't re-add the .reg posted above.... because i have make some change in my registry respect this .reg... on my registry i have this:
    Code: Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\00_CmdHereAsAdmin[/quote] It's contain the exact value of "OpenCmdHereAsAdmin" for example......

    I have check all other value and all it's identical... i have translate the value to Italian for example *Smile

    I can't also post a screenshot because when i choose "Open commands prompt" nothings appends in this specific case......

    I can post this....... this is the case:

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


    If i choose "Apri promt dei comandi qui.." (in italian) i can see for a little moment the powershell and after nothings append.....

    It's also obtain same things when i choose the stepback folder............ instead the command prompt it's work only if i launch from d:\ when i select the folder "Indiana Jones - Tomba Imperatore - GOG". For every sub-folder inside this it's not works.......

    It's very strange because i have also similar tree subfolders in same D: hard disk and apparently only whit this Indiana Jones it's not works...

    *EDIT*
    I have an idea... it's possible it's not woks because the subfolders contain the char " ' " inside the names ???

    *EDIT 2*
    I HAVE FOUND THE PROBLEMS!!!

    I have created a folder called "ciao mamma's" on my D:\.

    I have tryed to use "Apri prompt dei comandi qui..." and.......... it's not works............

    i see the command's it's:
    Code: PowerShell -windowstyle hidden -Command "Start-Process cmd -ArgumentList '/s,/k,pushd,%V' -Verb RunAs"[/quote] it's the %V the path right ?? I thinks it's can help if i put the %V inside two " " like "%V" ?
     
    DjDiabolik, Aug 25, 2017
    #9
  10. Brink
    Brink New Member
    Hello DJ, *Smile

    I just tested, and it's the apostrophe in the folder's name causing it to not work. If you rename the folder to remove the apostrophe, it should work.

    Wrapping quotes around %V makes no difference.
     
    Brink, Aug 25, 2017
    #10
  11. yeah... but i can't modify the folder name of games of indiana jones or the games it's no working after it because some value it's stored on registry.

    At this point it's a limitation of this feature ? *Smile
     
    DjDiabolik, Aug 30, 2017
    #11
  12. Brink
    Brink New Member
    Brink, Aug 30, 2017
    #12
  13. Open command window here as administrator - Add in Windows 10

    Oh it's interested... it's similar the old method working also on windows 7 right ?

    Thanks for info *Smile anyway but the folder contains the symbol " ' " it's very rarely and now if i know this "limitation" it's not a big problems this little trouble *Smile
     
    DjDiabolik, Sep 9, 2017
    #13
  14. technozz Win User
    How to make it as cascade context menu? i was using "flyout" and "SubCommands"="" the cmd open but not working as Administartor*cry
     
    technozz, Jan 6, 2018
    #14
  15. Brink
    Brink New Member
    Hello technozz, *Smile

    What were you wanting in the cascade?
     
    Brink, Jan 6, 2018
    #15
Thema:

Open command window here as administrator - Add in Windows 10

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

  2. opening as administrator in Windows 10

    in Windows 10 Gaming
    opening as administrator in Windows 10: just installed combat flight simulator on my windows 10, originally installed in windows 7, tried to open in compatible mode said I need to open as administrator, how do I do that?...
  3. Unable to open Command Prompt as Administrator in Windows 10

    in Windows 10 Customization
    Unable to open Command Prompt as Administrator in Windows 10: Hello everyone I'm having a problem when I attempt to open my Command Prompt as Administrator in Windows 10. I'm unable to enter my admin username and password. It saysTo continue, enter an admin user name and password, but then under that there are no entry prompts for the...
  4. how to add administrator to Windows 10

    in Windows 10 Installation and Upgrade
    how to add administrator to Windows 10: My profile says I am already the administrator, but I think that is not 100% true. I did a search, but the old info on how to create an admin account look wrong. How do I do this now? I am just trying to install Adobe Reader, but can't...
  5. 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...
  6. 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...
  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 Bash window here as administrator - Add in Windows 10

    in Windows 10 Tutorials
    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 [img] Information Microsoft first made investments that improve cmd, PowerShell, and many other command-line tools and...
  9. 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...
  10. 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....