Open command window here as administrator - Add in Windows 10  

Page 2 of 11 FirstFirst 1234 ... LastLast
  1. Brink's Avatar
    Posts : 56,311
    64-bit Windows 10 Pro for Workstations build 21359
    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 : 83
    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. Brink's Avatar
    Posts : 56,311
    64-bit Windows 10 Pro for Workstations build 21359
    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. Brink's Avatar
    Posts : 56,311
    64-bit Windows 10 Pro for Workstations build 21359
    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. Brink's Avatar
    Posts : 56,311
    64-bit Windows 10 Pro for Workstations build 21359
    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 : 112
    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. Brink's Avatar
    Posts : 56,311
    64-bit Windows 10 Pro for Workstations build 21359
    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


 
Page 2 of 11 FirstFirst 1234 ... 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 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 06:13.
Find Us




Windows 10 Forums