Windows 10: How to use RunAs without password prompt? Solved

Page 2 of 2 FirstFirst 12
  1. Brink's Avatar
    Posts : 33,147
    64-bit Windows 10 Pro build 18262
       11 Jun 2018 #11


    If it helps, here's an option for adding an Open command window here as administrator context menu.

    Open command window here as administrator - Add in Windows 10 | Windows 10 Tutorials
      My ComputersSystem Spec

  2.    11 Jun 2018 #12

    Helped not, I'm not working with PowerShell.

      My ComputerSystem Spec

  3.    11 Jun 2018 #13

    Ah, now I understand what you mean. You want this:
    Click image for larger version. 

Name:	context menu.jpg 
Views:	24 
Size:	32.0 KB 
ID:	191924

    Here's how I do this.
    1. Download NirCMD, extract to C:\Windows\System32. (Make sure you download the right 'bitness', i.e. x64 or x32.)
    2. Right-click on nircmd.exe, choose Properties and make sure the file is unblocked.
    3. Save the following as something like runas_regedit_admin.reg:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Run Regedit as Administrator]
    "MUIVerb"="Run Regedit as Administrator"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Run Regedit as Administrator\command]
    @="nircmd.exe elevate regedit.exe"
    4. Save the following as something like open_cmd_as _admin_here.reg:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Open CMD here as Administrator]
    "MUIVerb"="Open CMD here as Administrator"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Open CMD here as Administrator\command]
    @="nircmd elevate cmd.exe /s /k pushd \"%V\"⧹"
    5. Merge both REG files into the registry.

    (The above has been tested as working in Win 10 Home 1803 Build 17134.48. See this webpage for more examples of using NirCMD. Note: I also tried Nir Sofer's AdvancedRun but the syntax was not so straightforward.)

    Hope this helps...
      My ComputerSystem Spec

  4.    11 Jun 2018 #14

    This help was better than best!
    NirSoft offers lot of tools which are perfect to use.

    Thank you very much!
    We can close thread, no matter if was RunAs solved by Windows or other tools.

      My ComputerSystem Spec

  5.    13 Jun 2018 #15

    Hmmm... well, I have to laugh. After working out how to do what the OP wanted using NirCMD, I found a small, free utility that does exactly the same but with no effort whatsoever.

    If anyone wants right-click versatility, have a look at's Easy Context Menu v1.6 (and use its built-in List Editor to amend the properties of list items, e.g. to add or remove 'Run as administrator' option.) If only I'd found this earlier.

    Note: It says it's portable but I found it had written to C:\Program Files\Easy Context Menu and in a Files sub-folder I found NirCMD... so I guess that's how ECM adds elevation.

    Hope this helps...
      My ComputerSystem Spec

Page 2 of 2 FirstFirst 12

Related Threads
No Password Prompt on Sign in page in User Accounts and Family Safety
Hello,For last 2-3 days when I turn on my desktop, it is bypassing my Macrium Reflect / Win 10 Boot option screen and opens to the std win 10 splash screen and just sits there? There is no sign-in on the screen? Only thing in the bottom RH corner is...
One of scores and scores of people having home network connection issues...when prompted for the password, etc, when trying to access a network share (another desktop in the house)...This may sound stupid...but what is the attached jpg network...
At Windows startup a login prompt with a password box, user account picture or name does not appear. All i see is my screen saver background. I found a temporary fix which is restarting my computer, then and only then can i type in my password to...
Hi all, I was wondering how to make Windows UAC prompting me for my PIN be the default behavior, instead of prompting for my password? I have just reinstalled Windows 10 on my laptop. I used to be able to do that. Now that I have reinstalled...
I tried the runas command to configure some software I just updated, as the directions said, but my administrator password was rejected. Then I tested the runas command on a pdf file that I know for sure is in the current directory (it can open from...
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 21:26.
Find Us