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

Page 2 of 3 FirstFirst 123 LastLast
  1. Brink's Avatar
    Posts : 33,027
    64-bit Windows 10 Pro build 18252
    Thread Starter
       31 Aug 2017 #10

    DJ,

    If you like, I have a version of this context menu in the tutorial below that uses the "Runas" key instead that will work without this character name limitation. It'll work in Windows 10 as well.

    Open Command Window Here as Administrator - Windows 7 Help Forums
      My ComputersSystem Spec

  2.    10 Sep 2017 #11

    Brink said: View Post
    DJ,

    If you like, I have a version of this context menu in the tutorial below that uses the "Runas" key instead that will work without this character name limitation. It'll work in Windows 10 as well.

    Open Command Window Here as Administrator - Windows 7 Help Forums
    Oh it's interested... it's similar the old method working also on windows 7 right ?

    Thanks for info :) 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 :)
      My ComputerSystem Spec

  3. Brink's Avatar
    Posts : 33,027
    64-bit Windows 10 Pro build 18252
    Thread Starter
       10 Sep 2017 #12

    Correct. :)
      My ComputersSystem Spec


  4. Posts : 4
    Windows 10 Professional 64-Bit
       06 Jan 2018 #13

    How to make it as cascade context menu? i was using "flyout" and "SubCommands"="" the cmd open but not working as Administartor
      My ComputerSystem Spec

  5. Brink's Avatar
    Posts : 33,027
    64-bit Windows 10 Pro build 18252
    Thread Starter
       07 Jan 2018 #14

    Hello technozz, :)

    What were you wanting in the cascade?
      My ComputersSystem Spec


  6. Posts : 4
    Windows 10 Professional 64-Bit
       11 Jan 2018 #15

    Brink said: View Post
    Hello technozz, :)

    What were you wanting in the cascade?
    Sorry for late reply:)
    I was already make this
    Name:  Screenshot.png
Views: 365
Size:  117.7 KB
    I want move Open command window here as administrator in cascade context menu
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 33,027
    64-bit Windows 10 Pro build 18252
    Thread Starter
       11 Jan 2018 #16

    Currently, Open command window here as administrator is only a single item, so it wouldn't make much sense to cascade it unless you wanted other related items in it.
      My ComputersSystem Spec

  8.    23 May 2018 #17

    Prior to doing this I had added TakeOwnership to the context menu. Adding this works but it removes the TakeOwnership and vice versa. Is there away I can have both ? This is the registry code for TakeOwnership is:
    Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\*\shell\runas]

    [HKEY_CLASSES_ROOT\*\shell\runas]@="Take Ownership""Icon"="C:\\Windows\\System32\\imageres.dll,-78""NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\*\shell\runas\command]@="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F""IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F"[-HKEY_CLASSES_ROOT\Directory\shell\runas][HKEY_CLASSES_ROOT\Directory\shell\runas]@="Take Ownership"

    "Icon"="C:\\Windows\\System32\\imageres.dll,-78"
    "NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\Directory\shell\runas\command]@="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t""IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t"[-HKEY_CLASSES_ROOT\dllfile\shell]

    [HKEY_CLASSES_ROOT\dllfile\shell\runas]@="Take Ownership""HasLUAShield"="""NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\dllfile\shell\runas\command]@="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F""IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F"
      My ComputerSystem Spec

  9. Brink's Avatar
    Posts : 33,027
    64-bit Windows 10 Pro build 18252
    Thread Starter
       24 May 2018 #18

    Hello @jmsnyc,

    If you like, you could use the "Take Ownership" context menu from the tutorial below instead that will allow you to have both since it doesn't use the "runas" key.

    Add Take Ownership to Context Menu in Windows 10 | Windows 10 Tutorials
      My ComputersSystem Spec

  10.    25 Jul 2018 #19

    Great to know! My old Open Command Prompt Here was not working and I found this. Your posts are a treasure trove of windows info Thanks!!
    BTW
    Is there a way to customize the window title in the resulting window?
      My ComputerSystem Spec


 
Page 2 of 3 FirstFirst 123 LastLast

Tutorial Categories

Open command window here as administrator - Add in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
How to Open a Command Prompt at Boot 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...
General Tips Open Command Prompt in Windows 10 in Tutorials
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...
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 administrator rights on your computer without using the Windows...
When selecting the command prompt from the right click on startup options I get the following message: 'This file does not have a program associated with it for performing this action. Please install a program, or if one is already...
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 11:49.
Find Us