Windows 7 Forums


Windows 7: Elevated Command Prompt


Elevated Command Prompt

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

Featured Tutorial

Screen Capture and Video Editing in High Quality
Screen Capture and Video Editing in High Quality



Safe Internet Browsing
Safe Internet Browsing

How to safely operate on the internet and stay free from malware infections

Microsoft Account Display Name - Change
Microsoft Account Display Name - Change

How to Change your Microsoft Account Display Name

Emergency Kit - save your files from a dead OS
Emergency Kit - save your files from a dead OS

How to Create and Use a Linux Mint Mate USB Flash Drive to Recover your Files

User Profiles - Create and Move During Windows 7 Installation
User Profiles - Create and Move During Windows 7 Installation

How to Create User Accounts on another Partition or Disk During Windows 7 Installation

Microsoft Account Primary Alias Email Address - Change
Microsoft Account Primary Alias Email Address - Change

How to Change your Microsoft Account Primary Alias Email Address
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.

Elevated Command Prompt-start-.jpg


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.
Elevated Command Prompt-elevated_command_prompt.jpg



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)
Elevated Command Prompt-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)
Elevated Command Prompt-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.
Elevated Command Prompt-log-.jpg




That's it,
Shawn






Need more help? Try searching our extensive help and support site.
Loading
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

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

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

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

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

Vista, Windows7, Mint Mate, Zorin, Windows 8
Florida in winter, Black Forest/Germany
 
 

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
Scottsdale, AZ
 
 

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 problems?



Tutorial Tools



Similar help and support threads for: Elevated Command Prompt
Windows 7 Tutorial Category
Elevated Command Prompt Shortcut Tutorials
Solved On-Screen Keyboard will only run from elevated command prompt General Discussion
Tip for Elevated Command Prompt General Discussion
How to open Elevated Command Prompt? Performance & Maintenance
elevated command prompt fails General Discussion


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


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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 31 32