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: 451509
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: 453216
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: 440190
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
Windows 7 Tutorial Category
Elevated Command Prompt Shortcut
How to Create an "Elevated Command Prompt" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a shortcut that will open an elevated command prompt with administrator rights in Windows 7 and Windows 8. When you use the elevated command prompt shortcut, you may be...
Tutorials
Elevated command prompt over SSH
Not sure if this is the proper forum for my question, but here it goes. I'm using a SSH server to remotely access my notebook from work. It works well for SFTP and remote command line access using a dedicated, non-admin, user account. Problem is when I want to run something that requires...
Network & Sharing
On-Screen Keyboard will only run from elevated command prompt
I recently noticed that I couldn't start the On-Screen Keyboard (osk.exe) from my start menu. Tried all kinds of clean-ups, but it would not run - not from the %windir%\system32 folder, not from start>run, not from an ordinary command shell. But it loads fine from an elevated command shell. It also...
General Discussion
Tip for Elevated Command Prompt
This probably is not new to many, but I find it useful. There are times I want an elevated command prompt. I usually type in "cmd", right click on it and run as administrator. If you need an elevated command prompt now and then, simply create a shortcut to "cmd". Right click on the shortcut,...
General Discussion
How to open Elevated Command Prompt?
Hi friends ! Uber Philf told me to start a new thread with my problem. I cannot open an Elevated Command Prompt, Dont know why. I know that I can open it in two alternative ways : 1). Win+R, type cmd, hit enter eith ctrl+shift pressed ; and 2). start > all programs > accessories > command prompt >...
Performance & Maintenance
elevated command prompt fails
If i try and use cmd from within the start menu ,in accessories and right click ,then "Run as administrator",all i am granted is normal cmd usage e.g(C:\Users\(User Name ).Now,i then pinned cmd to the start menu and again i tried to "run as administrator",but this time cmd fails to open at all. ...
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 10:05.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App