Windows

Tip: How do I run the command line as an Administrator in Windows Vista


If you enjoy using the command line to perform certain functions on your computer, you have probably noticed that Windows Vista requires you to elevate the rights of the command line to carry out certain tasks. Let me show you what I am talking about. For example. let's say I want to to release the IP address of my computer. This requires me to run the command ipconfig/release. When I try to do this I get an error. Let's walk through the steps.

Click the Start button and type cmd in the Instant Search field and press the Enter key(Figure A).

Figure A.

Next, type ipconfig /release. You will get the following error as shown in Figure B.

Figure B.

In order to elevate your rights as an administrator, simply click the Start button and type cmd in the Instant Search field BUT press CTRL + SHIFT + ENTER instead of just ENTER. Your rights are now elevated (Figure C.)

Figure C.

I also put together a quick movie as a visual example.

6 comments
thisisjeng
thisisjeng

what if there's an admin password??

m.dupont
m.dupont

Thanks for the great tip. I was using tweak uac before.

juan.montoya
juan.montoya

Thanks for a great tip man!....is this possible in Win XP? Best Regards!

smerrill
smerrill

Alternatively, you can pin a Cmd.exe command to Start Menu and configured it to run as administrator: 1. Click on Start button. 2. Type cmd into the Search box. 3. You will see search result with a list consisting of just one entry, that is the shortcut to the Windows Command Processor, cmd. 4. Right-click the cmd shortcut in the search listing. 5. On the pop-up context menu, choose Pin to Start Menu. 6. Click on Start button again. 7. Right-click the Command Prompt shortcut just added to the Start menu and choose Properties. 8. Click the Advanced button to open Advanced Properties dialog box. 9. Click (tick) to select the Run as administrator checkbox so that elevated command prompt is run as administrator by default, and then click OK. 10. Click OK to save the changes. Now there is no need to right click every time to run as administrator.

Steven Warren
Steven Warren

after you type cmd and it appears in the list, right-click on it and choose run as administrator.

Tink!
Tink!

it's still located in Accessories as "Command Prompt" If you don't have Admin rights on your PC, try the right click method (described in the next few posts)