Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Open Command Window Here as Administrator



 

Open Command Window Here as Administrator

Add or Remove "Open Command Window Here as Administrator" to the Context Menu
Published by Brink
12-16-2009
Default Open Command Window Here as Administrator

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

information   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 to open a elevated command prompt with the focus at the folder, drive, desktop location in Windows 7.
Note   Note
This is just like the Open Command Window Here context menu item, except that it opens a elevated "run as administrator" command prompt at the folder or drive location instead.

When added, you can right click, or press and hold shift and right click, on a 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   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. To Add "Open Command Window Here as Administrator"
A) Click on the download button below to download the file below.
Add_Open_Command_Window_Here_as_Administrator.reg
download
B) Go to step 3.
2. To Remove "Open Command Window Here as Administrator"
A) Click on the download button below to download the file below.
Remove_Open_Command_Window_Here_as_Administrator.reg
download
3. Click on Save, and save the .reg file to the desktop.

4. Right click on the downloaded .reg file and click on Merge.

5. When prompted, click on Run, Yes, Yes, and OK to approve merging the .reg file.

6. You can now delete the downloaded .reg file if you like.
That's it
Shawn




Published by
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 34,826
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
03-21-2010   #1
janmejaya


windows 7
 
 


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

My System SpecsSystem Spec
03-21-2010   #2
SIW2


Vista x64 / 7 X64
 
 


Don't you find that intereferes with any other runas context menu items, e.g. Take Ownership?
My System SpecsSystem Spec
04-04-2010   #3
bertie11


Windows 7
 
 


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 System SpecsSystem Spec
.


04-04-2010   #4
z3r010


Windows 7 Ultimate x64 SP1
 
 


Quote   Quote: Originally Posted by bertie11 View Post
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 System SpecsSystem Spec
04-04-2010   #5
Brink


Windows 7 Ultimate x64 SP1
 
 


Quote   Quote: Originally Posted by bertie11 View Post
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 System SpecsSystem Spec
04-05-2010   #6
bertie11


Windows 7
 
 


That fixed it!
Thanks Brink and Z3r010
My System SpecsSystem Spec
04-05-2010   #7
Brink


Windows 7 Ultimate x64 SP1
 
 


You're most welcome Bertie.
My System SpecsSystem Spec
04-20-2010   #8
guiLe


win7
 
 


nice tutor
very useful ...
My System SpecsSystem Spec
06-10-2010   #9
rover3500


windows 7 release / Ubuntu 10.4
 
 

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; 06-13-2010 at 03:28 AM..
My System SpecsSystem Spec
Comment

Open Command Window Here as Administrator problems?



Tutorial Tools



Similar Threads for: Open Command Window Here as Administrator
Windows 7 Tutorial Category
Open Command Window Here - Add or Remove Tutorials
Open Command Window Here Tutorials
Open Command Window Here General Discussion
Problem open command Window(administrator) Network & Sharing
Open elevated command window here General Discussion


All times are GMT -5. The time now is 01:11 AM.



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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30