Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Elevated Command Prompt


Elevated Command Prompt

How to Open an Elevated Command Prompt in Windows 7
Published by Brink
04 Dec 2008
Published by

How to Open an Elevated Command Prompt in Windows 7

information   Information
This will show you how to open an elevated command prompt with administrator rights (Run as administrator) instead of the default command prompt without administrator rights in Windows 7.

Tip   Tip
If you opened the elevated command prompt from a shortcut (ex: in Start Menu) and it opens to another location other than C:\Windows\System32, then right click on the shortcut and click on Properties. In the Shortcut tab, check to make sure that you have %HOMEDRIVE%%HOMEPATH% in the Start in field like below.

Name:  Start-in.jpg
Views: 406849
Size:  69.1 KB


EXAMPLE: Elevated Command Prompt
NOTE: Notice how the elevated command prompt opens to C:\Windows\System32 and not C:\Users\(user name) as the default command prompt without administrator rights.
Name:  Elevated_Command_Prompt.jpg
Views: 408451
Size:  30.5 KB



Here's How:
1. Do step 2, 3, 4, or 5 below for how you would like to open an elevated command prompt.

2. Use an Elevated Command Prompt shortcut.

OR

3. Open the Start Menu, click on All Programs and Accessories, right click on Command Prompt, and click on Run as administrator. (see screenshot below)
-shortcut.jpg
OR

4. Open the Start Menu, type cmd in the search box, and press CTRL+SHIFT+ENTER.

OR

5. Open the Start Menu, type cmd in the search box, right click on cmd.exe (at top), and click on Run as administrator. (see screenshot below)
-search_box.jpg
Tip   Tip
  • If you are in a administrator account and get a log in prompt after doing any of the above steps, then click on the Cancel button and repeat the above step again. This will only do this for the very first time you try to open a elevated command prompt in Windows 7.
  • If you are in a standard account, then you will need to type in the administrator's password to elevate the command prompt.
Name:  Log-In.jpg
Views: 395613
Size:  63.1 KB




That's it,
Shawn




20 Jan 2009   #1
xIxREXxIx

Windows 7
 
 

I tried doing that, but everytime I try it keeps asking for the Admin password, do I have any hope being a Standard User?


My System SpecsSystem Spec
21 Jan 2009   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello xIxREXxiIx,

Sorry, but you will have to do this in a administrator account, or type in the administrator's password.

Shawn
My System SpecsSystem Spec
02 Feb 2010   #3
Muzain

Windows 7 Ultimate / Windows 8 Build
 
 

Thanks man saved my life
Ha ha ha
My System SpecsSystem Spec
15 Feb 2010   #4
o0chronoss0o

windows seven
 
 

my problem lies not in taking ownership of files in the command line. If anybody can help me...my problem lies in the command that i input in the cmd itself like the chkdsk command or the defrag command in cmd, there is always a prompt that "you dont have enough administrative rights". if anyone knows how the cmd itself can be taken ownership of...id be much grateful.....

good day and god bless......
My System SpecsSystem Spec
15 Feb 2010   #5
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Chronoss, and welcome to Seven Forums.

Are you logged in as an administrator, and are using a elevated (right click and "Run as administrator") command prompt?
My System SpecsSystem Spec
16 Feb 2010   #6
o0chronoss0o

windows seven
 
 

yup...have done that and ive even activated most of the tweaks which pertains to acquisition of administrative rights.....

this pose as a problem to me since am used to defragging and disc checking utilizing such commands....

but in the attrib side i find no problems in that area....

my problems lies merely on that part....

thanks for replying...

good day and god bless....
My System SpecsSystem Spec
16 Feb 2010   #7
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Quote   Quote: Originally Posted by o0chronoss0o View Post
yup...have done that and ive even activated most of the tweaks which pertains to acquisition of administrative rights.....

this pose as a problem to me since am used to defragging and disc checking utilizing such commands....

but in the attrib side i find no problems in that area....

my problems lies merely on that part....

thanks for replying...

good day and god bless....
Tick the "Always run as administrator" box in Properties > Advanced. Maybe that helps
My System SpecsSystem Spec
18 Feb 2010   #8
o0chronoss0o

windows seven
 
 

thanks for replying...im gonna try that....

im running 2 systems....

mostly im on XP....

the one that contains the WIN 7 OS belongs to mah friend, i do maintennance on his systems...

will let you know if it works...

thanks a lot...good day and god bless....
My System SpecsSystem Spec
03 Sep 2010   #9
Zardoz

Windows 7 Pro x64
 
 

Interesting I tried all scenerios! The ONLY method that resulted in the proper path was the last one. ALL the others still pointed to the user as if I had not specified the Run as Administor.
My System SpecsSystem Spec
Comment

 Elevated Command Prompt




Tutorial Tools



Similar help and support threads for2: Elevated Command Prompt
Windows 7 Tutorial Category
Elevated Command Prompt Shortcut Tutorials
Elevated command prompt over SSH Network & Sharing
Solved On-Screen Keyboard will only run from elevated command prompt General Discussion
Tip for Elevated Command Prompt General Discussion
Running an elevated command prompt (from the Recovery DVD) General Discussion
How to open Elevated Command Prompt? Performance & Maintenance
elevated command prompt fails General Discussion

Our Sites

Site Links

About Us

Find 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 12:16 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App