How to Open an Elevated Command Prompt in Windows (2024)

What to Know

  • Open Task Manager and select Run new task (in Windows 11) or File > Run new task (in Windows 10/8).
  • Type cmd in the text field and check the Create this task with administrative privileges box.
  • Choose OK and follow any User Account Control requirements.

This article explains how to open an elevated Command Prompt in Windows 11, 10, or 8. It also includes instructions for Windows 7 and Vista, along with additional information on why you need an elevated Command Prompt and how to tell whether you have administrator privileges.

How to Open an Elevated Command Prompt in Windows 11, 10, or 8

If you're using a keyboard with Windows 11, Windows 10, or Windows 8, you can open an elevated Command Prompt quickly from the Power User Menu. Just use the WIN+X keyboard shortcut and then select Terminal (Admin) (in Windows 11) or Command Prompt (Admin) (in Windows 10/8). Choose Yes on any User Account Control messages that might appear.

Depending on your settings and Windows configuration, Command Prompt may be replaced by Windows Powershell. If you're using Windows 11, the option in the Power User Menu is for Terminal; you can get to Command Prompt after opening that program.

Another method is to use Task Manager:

  1. Open Task Manager. The quickest way, assuming you're using a keyboard, is via CTRL+SHIFT+ESC, but there are several other methods outlined in that link. One easy way is to type task manager into the search bar on the taskbar.

    How to Open an Elevated Command Prompt in Windows (1)

  2. Select Run new task at the top (Windows 11), or go to File > Run new task.

    How to Open an Elevated Command Prompt in Windows (2)

    Don't see the File menu? You may first have to select More details at the bottom of the Task Manager window to show a more advanced view of the program, including the File menu.

  3. In the Create new task window you see now, type the following in the Open text field:

     cmd

    ...but don't do anything else just yet!

  4. Check the box that says Create this task with administrative privileges.

    How to Open an Elevated Command Prompt in Windows (3)

    Don't see this box? That means that your Windows account is a standard account, not an administrator account. Your account must have administrator privileges to be able to open an elevated Command Prompt this way. Follow the Windows 7/Vista method below, or try the tip just below these instructions.

  5. Choose OK and then follow any User Account Control requirements that might appear next. An elevated Command Prompt window will now appear, allowing unrestricted access to executing commands.

Feel free to close Task Manager. It does not need to remain open to use Command Prompt.

How to Open Command Prompt in a Folder

How to Open an Elevated Command Prompt in Windows 7 or Vista

These are alternative steps you can follow on Windows 7 or Windows Vista:

  1. Locate the Command Prompt shortcut, usually in the Accessories folder in the Start Menu.

    If you're having trouble finding it, see How to Open Command Prompt (the non-elevated kind). But first, there's an intermediate step you need to take.

  2. Right-click it and choose Run as administrator.

  3. Accept any User Account Control messages or warnings.

An elevated Command Prompt window should appear, allowing access to commands that require administrative level privileges.

When Do You Need an Elevated Command Prompt?

Some commands available in Windows require that you run them from an elevated Command Prompt. Basically, this means running the Command Prompt program (cmd.exe) with administrator-level privileges.

You'll know if you need to run a particular command from within an elevated Command Prompt because it'll clearly tell you that in an error message after running the command.

For example, when you try to execute the sfccommand from a normal Command Prompt window, you'll get the "You must be an administrator running a console session in order to use the sfc utility" message.

Try the chkdskcommand and you'll get an "Access Denied as you do not have sufficient privileges or the disk may be locked by another process. You have to invoke this utility running in elevated mode and make sure the disk is unlocked"error.

Other commands give other messages, but regardless of how the message is phrased, or what Command Prompt command we're talking about, the solution is simple: open an elevated Command Prompt and execute the command again.

More About Elevated Command Prompts

Don't let all the discussion above convince you that you should, or need to, run Command Prompt as an administrator for most commands. For almost all Command Prompt commands, no matter what version of Windows, it's perfectly okay to execute them from a standard Command Prompt window.

To be able to open an elevated Command Prompt window, either a) your Windows user account must already have administrator privileges, or b) you must know the password to another account on the computer that has administrator privileges. Most home computer user's accounts are set up as administrator accounts, so this isn't usually a concern.

How to Tell if You Have Administrator Privileges

There's a very easy way to tell if the Command Prompt window you've opened is elevated or not: it's elevated if the window title says Administrator; it's not elevated if the window title just says Command Prompt.

An elevated Command Prompt window opens to the system32 folder. A non-elevated Command Prompt window instead opens to the user's folder: C:\Users\[username]. The only exception is if you've opened an elevated Command Prompt via Terminal, in which case it might also open to the user's folder.

If you plan on frequently using an elevated Command Prompt, then you should consider creating a new shortcut to Command Prompt that automatically starts the program with administrator-level access. See How to Create an Elevated Command Prompt Shortcut if you need help.

In Windows XP, users have Administrator privileges by default. When you open a Command Prompt in XP, it will be elevated unless you have another type of profile.

FAQ

  • How do I open a Command Prompt?

    To open a Command Prompt, select Start icon and search for command prompt. Select the command prompt from the search results. You can also go to Start > Windows System and choose Command Prompt from the folder group.

  • How do I open the Command Prompt on a Mac?

    Mac users don’t have Command Prompt. Instead, they use the Terminal program. To open Terminal, go to Finder, open the /Applications/Utilities folder, and select Terminal. Or, enter Terminal into Spotlight Search.

  • How do I change directory in Command Prompt?

    To change directories via the Command Prompt, type cd followed by a space and the folder name. For example, type cd Documents to change from your current folder to the Documents folder.

Was this page helpful?

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Tell us why!

How to Open an Elevated Command Prompt in Windows (2024)

FAQs

How to Open an Elevated Command Prompt in Windows? ›

Press Alt + Enter at the same time to expand the command prompt to fit the full screen. To run DOS programs in full-screen mode, you'll need an emulator like DOSBox. If you're using Windows 8.1 or Windows 7, run the "wmic" command and then maximize the window.

How to open elevated cmd prompt? ›

Re: Need elevated command prompt
  1. Search for Command Prompt: Type "Command Prompt" into the Windows search bar located on the taskbar.
  2. Run as Administrator: Right-click on "Command Prompt" in the search results, and then select "Run as administrator" from the context menu.
Mar 11, 2024

How do I open a maximized Command Prompt? ›

Press Alt + Enter at the same time to expand the command prompt to fit the full screen. To run DOS programs in full-screen mode, you'll need an emulator like DOSBox. If you're using Windows 8.1 or Windows 7, run the "wmic" command and then maximize the window.

How to run with elevated privileges in Windows 10? ›

To run apps elevated from the Taskbar, use these steps:
  1. Right-click the app in the Taskbar.
  2. Right-click the app name.
  3. Select the Run as administrator option.
Mar 26, 2024

How do I open a Command Prompt? ›

To access a command prompt using the Run command box: Open the Start menu or press the Windows key + R. Type cmd or cmd.exe in the Run command box. Press Enter.

How to elevate user to admin in cmd? ›

Using a command prompt
  1. Open “Run” with [Windows] + [R].
  2. Type “cmd” and press [Ctrl] + [Shift] + [Enter].
  3. Type “net user administrator /active:yes”.
  4. The administrator account is now activated.
  5. To deactivate: “net user administrator /active:no”.
Jan 25, 2022

How do I open an elevated PowerShell Command Prompt? ›

Press the “Windows” key + “R” on your keyboard to open the Run dialog. Type “powershell” into the Run dialog. Press “Ctrl” + “Shift” + “Enter” on your keyboard or press “o*k” to open PowerShell with elevated privileges. If prompted by the User Account Control (UAC) dialog, click “Yes” to grant administrative privileges.

How do I open Command Prompt in Windows setup? ›

The Command Prompt can be accessed by pressing Shift+F10 during Windows Setup. The Command Prompt is not available during Windows Setup. The Command Prompt wil not be available while offline and OOBE phases are running. This is the default setting.

How do I open cmd exe in full screen? ›

You can also press Alt + Shift + Enter when the cmd window is open.

How do I open Command Prompt in advanced options? ›

Way 2. Boot to Command Prompt in Windows 10 from Advanced Startup Options
  1. Enter the Windows 10 recovery environment. Turn your computer on and off three times. ...
  2. Click "Advanced options > Troubleshoot > Advanced options > Command Prompt" when the recovery screen appears.

How do I run Command Prompt with highest privileges? ›

Open an Elevated Command Prompt in Windows
  1. In the System Tray, click Start or the magnifying glass icon.
  2. Type cmd but do not press Enter.
  3. In the Best Results section, you should see Command Prompt.
  4. In the list of options under the Command Prompt application, click Run As Administrator.

How do I open an elevated Command Prompt? ›

To open an elevated command prompt, you can follow these steps:
  1. Press the Windows key on your keyboard or click on the Windows icon in the taskbar to open the Start menu.
  2. Type "cmd" in the search bar.
  3. Right-click on "command prompt" or "command prompt (Admin)" in the search results.
  4. Select "Run as administrator."

How do I open terminal with elevated privileges? ›

To run Windows Terminal with elevated administrator permission (admin mode), right-click on the Windows Terminal icon, then again on the Windows Terminal title that displays, then select "Run as administrator".

How to open Command Prompt with administrator privileges in Windows 10? ›

Windows 10: Launch Command Prompt as Administrator
  1. Click the Windows 10 Start Menu (hitting the Windows key on the keyboard if not already there).
  2. Type cmd on the keyboard which will bring up the Windows 10 search.
  3. Right-click on the Command Prompt app.
  4. Click the Run as administrator button at the top of the screen.
Nov 7, 2023

How to enable high performance mode cmd? ›

4. Enable the High Performance Power Plan Using Command Prompt
  1. Open Command Prompt with administrator rights.
  2. In the Command Prompt window, type the following command and press Enter: powercfg /s SCHEME_MIN.
  3. After the command is executed, close the Command Prompt window.
Mar 16, 2023

How do I open PowerShell elevated in cmd? ›

Step 1: Open the Command Prompt, and type the PowerShell as a command, then press Enter key. Step 2: Now, the command prompt will turn to Windows PowerShell. Step 3: Type the command start-process PowerShell -verb runas and press "enter" key. Step 4: It will bring up an elevated Windows PowerShell as an administrator.

How to open cmd in recovery mode? ›

Here are the steps:
  1. Enter the Windows 10 recovery environment. Turn your computer on and off three times. ...
  2. Click "Advanced options > Troubleshoot > Advanced options > Command Prompt" when the recovery screen appears. Then, the Command Prompt is immediately loaded, and you can start using it for whatever you need.

Top Articles
NFL Week 9 expert picks, odds for Chiefs-Dolphins, Eagles-Cowboys and every other game
zcode system discount
Spasa Parish
Rentals for rent in Maastricht
159R Bus Schedule Pdf
Sallisaw Bin Store
Black Adam Showtimes Near Maya Cinemas Delano
Espn Transfer Portal Basketball
Pollen Levels Richmond
11 Best Sites Like The Chive For Funny Pictures and Memes
Things to do in Wichita Falls on weekends 12-15 September
Craigslist Pets Huntsville Alabama
What's the Difference Between Halal and Haram Meat & Food?
R/Skinwalker
Rugged Gentleman Barber Shop Martinsburg Wv
Jennifer Lenzini Leaving Ktiv
Justified - Streams, Episodenguide und News zur Serie
Epay. Medstarhealth.org
Olde Kegg Bar & Grill Portage Menu
Cubilabras
Half Inning In Which The Home Team Bats Crossword
Amazing Lash Bay Colony
Juego Friv Poki
Dirt Devil Ud70181 Parts Diagram
Truist Bank Open Saturday
Water Leaks in Your Car When It Rains? Common Causes & Fixes
What’s Closing at Disney World? A Complete Guide
New from Simply So Good - Cherry Apricot Slab Pie
Drys Pharmacy
Ohio State Football Wiki
FirstLight Power to Acquire Leading Canadian Renewable Operator and Developer Hydromega Services Inc. - FirstLight
Webmail.unt.edu
2024-25 ITH Season Preview: USC Trojans
Restored Republic December 1 2022
12 30 Pacific Time
Jami Lafay Gofundme
Litter-Robot 3 Pinch Contact & Dfi Kit
Greenbrier Bunker Tour Coupon
No Compromise in Maneuverability and Effectiveness
Paper Io 2 Unblocked Games Premium
Crystal Westbrooks Nipple
Ice Hockey Dboard
Über 60 Prozent Rabatt auf E-Bikes: Aldi reduziert sämtliche Pedelecs stark im Preis - nur noch für kurze Zeit
Wie blocke ich einen Bot aus Boardman/USA - sellerforum.de
Craigslist Pets Inland Empire
Infinity Pool Showtimes Near Maya Cinemas Bakersfield
Hooda Math—Games, Features, and Benefits — Mashup Math
Dermpathdiagnostics Com Pay Invoice
How To Use Price Chopper Points At Quiktrip
Maria Butina Bikini
Busted Newspaper Zapata Tx
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 5495

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.