Page 1 of 2 12 LastLast
  1.    20 Aug 2016 #1
    Join Date : Aug 2016
    Posts : 3
    Windows 10

    [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 ComputerSystem Spec
  2.    20 Aug 2016 #2
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,977
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
      My ComputersSystem Spec
  3.    20 Aug 2016 #3
    Join Date : Aug 2016
    Posts : 3
    Windows 10
    Thread Starter

    My Solution is a bit different. @Context menu and UAC
      My ComputerSystem Spec
  4.    20 Aug 2016 #4
    Join Date : Oct 2013
    Posts : 24,390
    64-bit Windows 10 Pro build 17017

    I prefer to have the UAC prompt for better security.

    Open command window here as administrator - Add in Windows 10
      My ComputersSystem Spec
  5.    20 Aug 2016 #5
    Join Date : Aug 2016
    Posts : 3
    Windows 10
    Thread Starter

    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 ComputerSystem Spec
  6.    19 Sep 2016 #6
    Join Date : Sep 2016
    Posts : 47
    Windows 10 X64 Home

    I want to remove the Default SHIFT + RIGHT BUTTON of mouse when a folder it's selected......... apparently it's impossible....
      My ComputerSystem Spec
  7.    20 Sep 2016 #7
    Join Date : Oct 2013
    Posts : 24,390
    64-bit Windows 10 Pro build 17017

    Quote Originally Posted by DjDiabolik 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 ComputersSystem Spec
  8.    20 Sep 2016 #8
    Join Date : Jul 2016
    Posts : 24
    Windows 10 Pro X64

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

    ContextConsole Shell Extension
      My ComputerSystem Spec
  9.    21 Sep 2016 #9
    Join Date : Sep 2016
    Posts : 47
    Windows 10 X64 Home

    Quote Originally Posted by Brink 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 ComputerSystem Spec
  10.    21 Sep 2016 #10
    Join Date : Oct 2013
    Posts : 24,390
    64-bit Windows 10 Pro build 17017

    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 ComputersSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
General Tips Open Elevated Command Prompt 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 22:37.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums