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

Page 1 of 2 12 LastLast

  1. Posts : 3
    Windows 10
       #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 Computer

  2. Cliff S's Avatar
    Posts : 25,557
    Win10 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #2
      My Computers


  3. Posts : 3
    Windows 10
    Thread Starter
       #3

    My Solution is a bit different. @Context menu and UAC
      My Computer

  4. Brink's Avatar
    Posts : 56,346
    64-bit Windows 10 Pro for Workstations build 21359
       #4

    I prefer to have the UAC prompt for better security.

    Open command window here as administrator - Add in Windows 10
      My Computers


  5. Posts : 3
    Windows 10
    Thread Starter
       #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 Computer


  6. Posts : 83
    Windows 10 X64 Home
       #6

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

  7. Brink's Avatar
    Posts : 56,346
    64-bit Windows 10 Pro for Workstations build 21359
       #7

    DjDiabolik said:
    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 Computers

  8. dtoxic's Avatar
    Posts : 24
    Windows 10 Pro X64
       #8

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

    ContextConsole Shell Extension
      My Computer


  9. Posts : 83
    Windows 10 X64 Home
       #9

    Brink said:
    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 Computer

  10. Brink's Avatar
    Posts : 56,346
    64-bit Windows 10 Pro for Workstations build 21359
       #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.

    [How-To] Context menu "Open elevated Command Prompt Here" without UAC-regedit.png
      My Computers


 
Page 1 of 2 12 LastLast

  Related Discussions
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 05:54.
Find Us




Windows 10 Forums