How to Open an Elevated Command Prompt in Windows 7
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
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.
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.
Here's How:
1. Do step 2, 3, 4, or 5 below for how you would like to open an elevated command prompt.
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)
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)
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.
System Manufacturer/Model Number Assembled OS Windows 7 Ultimate / Windows 8 Build CPU Core i3 3.0GHz Second Generation (LGA1155) Motherboard Intel DH67CL Memory Kingston KVR1333 4GB (2+2) Graphics Card Onboard Intel HD Graphics Sound Card Sound Blaster Audigy LS Monitor(s) Displays Samsung 933NW Plus LCD Screen Resolution 1440*900
Keyboard Viewsonic View mate Mouse Viewsonic View mate mini PSU Mercury 500W Case Mercury Elite Cooling Standard Hard Drives Samsung 1TB Internet Speed 512kpbs
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.....
System Manufacturer/Model Number HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops OS Vista, Windows7, Mint Mate, Zorin, Windows 8 CPU from 1.6GHz Duo to i7 Monitor(s) Displays 2x HP w2207
Keyboard with trackball - no mices Mouse Trackball mice Hard Drives 5x HDD, 7x SSD, 12x Externals Internet Speed DSL 6000
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.
System Manufacturer/Model Number Custom OS Windows 7 Pro x64 CPU Intel i7-860 Motherboard Gigabyte GA-P55A-UD7 Memory OCZ Platinum DDR3 1333 (PC3 10666) OCZ3P1333LV4GK Graphics Card HIS H585FN1GD Radeon HD 5850 (Cypress Pro) 1GB 256-bit GDDR5 Sound Card Integrated Monitor(s) Displays Panasonic TC-P50V10
PSU OCZ Gold OCZZ850M 850W Case Lian Li C3300 Hard Drives 1 - (for OS) SSD 80G|INTEL SSDSA2M080G2XXX OEM
2 - Western Digital WD20EARS Caviar Green Hard Drives - 2TB, 3.5", SATA-3G