Open Command Window Here as Administrator

Page 1 of 5 123 ... LastLast
    Open Command Window Here as Administrator

    Open Command Window Here as Administrator

    Add or Remove "Open Command Window Here as Administrator" to Context Menu
    Published by
    Designer Media Ltd


    Add or Remove "Open Command Window Here as Administrator" to Context Menu

       Information
    This will show you how to add or remove Open Command Window Here as Administrator to the context menu of a folder, drive, and desktop of all users to open an elevated command prompt with the focus at the library, folder, drive, and desktop location in Windows 7 and Windows 8.

    You must be logged in as an administrator to be able to do the steps in this tutorial.

       Note
    This is just like the Open Command Window Here context menu item, except that it opens an elevated "run as administrator" command prompt at the library, folder, or drive location instead.

    When added, you can right click on a library, folder, or drive to see the Open Command Window Here as Administrator context menu item. You will then be prompted by UAC to click on YES or type in the administrator's password.

       Warning
    This will not work with Library folders.

    If you added the Take Ownership context menu item, then adding Open Command Window Here as Administrator will remove and replace it for folders and drives.


    EXAMPLE: Open Command Window Here as Administrator
    NOTE: This is the context menu with this added and you right click on a drive, folder, or on the desktop.
    Open Command Window Here as Administrator-drive.jpgOpen Command Window Here as Administrator-folder.jpgOpen Command Window Here as Administrator-desktop.jpg


    Here's How:

    1. Do step 2, 3, or 4 below for what you would like to do.

    2. Add "Open Command Window Here as Administrator" to Context Menu
    A) Click/tap on the download button below to download the file below, and go to step 5 below.

    Add_Open_Command_Window_Here_as_Administrator.reg


    Download

    3. Add Shift + Right Click "Open Command Window Here as Administrator" to Context Menu
    A) Click/tap on the download button below to download the file below, and go to step 5 below.

    Add_Shift+Open_Command_Window_Here_as_Administrator.reg


    Download

    4. Remove "Open Command Window Here as Administrator" from Context Menu
    A) Click/tap on the download button below to download the file below, and go to step 5 below.

    Remove_Open_Command_Window_Here_as_Administrator.reg


    Download

    5. Save the .reg file to your desktop.

    6. Double click/tap on the downloaded .reg file to merge it.

    7. When prompted, click on Run, Yes (UAC), Yes, and OK to approve merging the .reg file.

    8. You can now delete the downloaded .reg file if you like.



    That's it
    Shawn






  1. Posts : 6
    windows 7
       #1

    thanks a lot
    I was searching for it from a long tym to use attribute command line utility
      My Computer


  2. Posts : 16,119
    7 X64
       #2

    Don't you find that intereferes with any other runas context menu items, e.g. Take Ownership?
      My Computers


  3. Posts : 254
    Windows 8.1.1
       #3

    Hi Brink

    When I click on the unzipped reg file all I get is Notepad opening up showing the detail of the patch. I can't make it merge into the registry.
    Thanks.
      My Computer


  4. Posts : 51,356
    Windows 11 Workstation x64
       #4

    bertie11 said:
    Hi Brink

    When I click on the unzipped reg file all I get is Notepad opening up showing the detail of the patch. I can't make it merge into the registry.
    Thanks.
    If you open regedit (type regedit in the start search bar then press enter) then from the regedit file menu select import and then select the downloaded reg file.
      My Computers


  5. Posts : 71,960
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    bertie11 said:
    Hi Brink

    When I click on the unzipped reg file all I get is Notepad opening up showing the detail of the patch. I can't make it merge into the registry.
    Thanks.

    Hello Bertie,

    It sounds like you have a improper association set for .reg file extensions. Double check in Default Programs to make sure that the .reg file extension has it's "Current Default" program set to Registry Editor (C:\Windows\regedit.exe).

    Afterwards, see if you can merge the downloaded REG file.

    Hope this helps,
    Shawn
      My Computer


  6. Posts : 254
    Windows 8.1.1
       #6

    That fixed it!
    Thanks Brink and Z3r010
      My Computer


  7. Posts : 71,960
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    You're most welcome Bertie. :)
      My Computer


  8. Posts : 76
    win7
       #8

    nice tutor
    very useful ...
      My Computer


  9. Posts : 72
    windows 7 Premium
       #9

    I have an issue like brink


    I know what brink means,if i put take ownership and this reg together,when i try to open a command prompt as admin,it just takes over the folder,and doesn't open a cmd window.
    The reg entries are as follows if u have both installed:
    @="cmd.exe /s /k pushd "%V""
    and IsolatedCommand=cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t

    It seems to use the last command all the time.Also it would not let me merge from the reg file when i have take ownership installed,i had to manually put it in.It still shows on menu,but that's outside the key that has the command in the registry.
    The only way i can get the open cmd window to work is to take out the isolated command line.
    I've no idea why it does it this way,but it does for me,and prob Brink aswell.
    Thanx for the info by the way.If i use a different grant admin reg 'hack',i can have both installed,just not with the take ownership for directory 'hack'.

    I hope everyone knows what the hell i'm talking about...


    Edit : i was mistaken,it won't work with the grant admin reg either,just takes over folder when i do cmd as admin.Had to take out.
    Last edited by rover3500; 13 Jun 2010 at 03:28.
      My Computer


 
Page 1 of 5 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:59.
Find Us