Open command window here as administrator - Add in Windows 10  

Page 2 of 13 FirstFirst 123412 ... LastLast

  1. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


  2. Posts : 87
    Windows 10 X64 Home
       #11

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


  3. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #12

    Correct. :)
      My Computers


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

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


  5. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14

    Hello technozz, :)

    What were you wanting in the cascade?
      My Computers


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

    Brink said:
    Hello technozz, :)

    What were you wanting in the cascade?
    Sorry for late reply:)
    I was already make this
    Open command window here as administrator - Add in Windows 10-screenshot.png
    I want move Open command window here as administrator in cascade context menu
      My Computer


  7. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


  8. Posts : 124
    Windows 10
       #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 Computer


  9. Posts : 68,842
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


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


 

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 Mixed Reality Phone


  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 15:17.
Find Us




Windows 10 Forums