Page 1 of 2 12 LastLast

  1. Joined : Aug 2016
    Posts : 3
    Windows 10
       20 Aug 2016 #1

    [How-To] Context menu "Open elevated Command Prompt Here" without UAC


    1. Create a newTask named OpenCmdHereAsAdminNoUAC and activate "Run with the highest privileges"

    2. Go to the Actions Tab, create a new Action "Start a Program" choose "C:\Windows\System32\cmd.exe" and set the Working Directory (Start in) to
    %CURDIR%

    3. Create a Shortcut named OpenCmdHereAsAdminNoUAC.
    In the "Type the location of the item" Field type:

    C:\Windows\System32\schtasks.exe /run /TN "\OpenCmdHereAsAdminNoUAC"


    and copy the created Shortcut to C:\Windows\System32

    Finally, add the attached "Add_Open_Command_Window Here_Admin_No_UAC.reg" to Registry.

    Code:
    Windows Registry Editor Version 5.00
    
    ; Created by: Darth Nukem
    ; Created on: 08_20_16
    
    
    [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdminNoUAC]
    @="Open Command Window Here (Admin)"
    "HasLUAShield"=""
    
    
    [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdminNoUAC\command]
    @="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAsAdminNoUAC]
    @="Open Command Window Here (Admin)"
    "HasLUAShield"=""
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAsAdminNoUAC\command]
    @="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""
    
    
    
    
    [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHereAsAdminNoUAC]
    @="Open Command Window Here (Admin)"
    "HasLUAShield"=""
    
    
    [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHereAsAdminNoUAC\command]
    @="cmd /s /c \"setx CURDIR %V& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""
    
    
    [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHereAsAdminNoUAC]
    "HasLUAShield"=""
    @="Open Command Window Here (Admin)"
    
    
    [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHereAsAdminNoUAC\command]
    @="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""
      My System SpecsSystem Spec


  2. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,905
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       20 Aug 2016 #2
      My System SpecsSystem Spec


  3. Joined : Aug 2016
    Posts : 3
    Windows 10
       20 Aug 2016 #3

    My Solution is a bit different. @Context menu and UAC
      My System SpecsSystem Spec


  4. Joined : Oct 2013
    Posts : 17,438
    64-bit Windows 10 Pro build 15014
       20 Aug 2016 #4

    I prefer to have the UAC prompt for better security.

    Open command window here as administrator - Add in Windows 10
      My System SpecsSystem Spec


  5. Joined : Aug 2016
    Posts : 3
    Windows 10
       20 Aug 2016 #5

    The UAC prompt bothered me in this situation .
    But you are right, it is of course more secure if you do not bypass the UAC.
      My System SpecsSystem Spec


  6. Joined : Sep 2016
    Posts : 37
    Windows 10 X64 Home
       19 Sep 2016 #6

    I want to remove the Default SHIFT + RIGHT BUTTON of mouse when a folder it's selected......... apparently it's impossible....
      My System SpecsSystem Spec


  7. Joined : Oct 2013
    Posts : 17,438
    64-bit Windows 10 Pro build 15014
       20 Sep 2016 #7

    DjDiabolik said: View Post
    I want to remove the Default SHIFT + RIGHT BUTTON of mouse when a folder it's selected......... apparently it's impossible....
    Hello DJ,

    See the download from step 2 below for this.

    Open command window here as administrator - Add in Windows 10
      My System SpecsSystem Spec


  8. Joined : Jul 2016
    Posts : 23
    Windows 10 Pro X64
       20 Sep 2016 #8

    I use this one very easy with no fiddling around the Reg.

    ContextConsole Shell Extension
      My System SpecsSystem Spec


  9. Joined : Sep 2016
    Posts : 37
    Windows 10 X64 Home
       21 Sep 2016 #9

    Brink said: View Post
    Hello DJ,

    See the download from step 2 below for this.

    Open command window here as administrator - Add in Windows 10
    Oh yeah... but i have already create and found the solution myself using powershell but i have used a different command.... i have used this:
    i have create the voices named "00_CmdHereAsAdmin"... in this mode my custom voices appears immediatelly after "Add to quick access". But from reg files download here i can now add the icon..............

    And i have used this:
    C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Start-Process cmd -ArgumentList '/s,/k,pushd,%V' -Verb RunAs"

    I see the blue powershell and immediatelly after i see the command prompt... i thinks i can use the command suggested on .reg files....

    *EDIT*
    Warning...... i have apparently found a problems on .reg files in this link... the correct command i need to put it's:

    Code:
    PowerShell -windowstyle hidden -Command "Start-Process cmd -ArgumentList '/s,/k,pushd,%V' -Verb RunAs"
    In the .reg files contain a "" after -command and it's not works........ apparently the -windowstyle hidden it's no work because i can see the powershell windows otherwise........
      My System SpecsSystem Spec


  10. Joined : Oct 2013
    Posts : 17,438
    64-bit Windows 10 Pro build 15014
       21 Sep 2016 #10

    Hello DJ,

    Do you mean a problem from the .reg in the tutorial below?

    I'm not having any issue with it, so what issue are you having if so?

    Open command window here as administrator - Add in Windows 10

    This below is the command used by the .reg files in the tutorial.

    Click image for larger version. 

Name:	regedit.png 
Views:	2 
Size:	40.1 KB 
ID:	102531
      My System SpecsSystem Spec


 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Elevated Command Prompt - Open in Windows 10
How to Open an Elevated Command Prompt in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands in an elevated command prompt, you can perform tasks that require...
Tutorials
Solved Make Elevated Command Prompt open to %userprofile%
I have the Command Prompt icon on my Taskbar as I use it a lot. It's set to always run as Administrator, so when I launch it, the Command Prompt window opens to C:\Windows\system32. I want it to open to %userprofile% which is...
General Support
Adding "ctrl+F" command to Internet Explorer context menu
Greetings all. How do I add the keyboard shortcut command "ctrl+F" to the Internet Explorer context menu? I know where I need to go in the registry to add an item to the context menu of Internet Explorer, but I don't know how to add a keyboard...
Customization
"Open with" Right click context menu lacks browse for program option.
Trying to figure this out in Windows 10. I have a file on my system, and windows doesn't yet know what program to open it with. When I right click the file and select "open with", the dialogue is quite different. Now I no longer have the option...
General Support
Solved Get elevated command prompt to open in my user directory
I changed Command Prompt on my Taskbar so when I click on it, it opens as Administrator. That sets the default directory as C:\WINDOWS\system32 which I don't like, since any files I create that do not have a path specified will be created there. ...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:45.
Find Us
Twitter Facebook Google+



Windows 10 Forums