How to Open an Elevated Command Prompt in Windows 7
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.
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.
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)
4. Open the Start Menu, type cmd in the search box, and press CTRL+SHIFT+ENTER.
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)
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.....