How to open Command Prompt as administrator in Windows

Last update: 01/12/2026

  • In Windows 11, press Windows + X and select Terminal (Administrator).
  • Terminal hosts interpreters such as CMD and PowerShell, whose commands and syntax may differ.
  • A standard account needs administrator credentials to authorize an elevation using UAC.
  • The System32 folder does not prove that the console is elevated; changing directories does not reduce permissions either.

If a tutorial asks you open Terminal as administratorYou need to open a window with elevated privileges before executing its instructions. In Windows 11, the most direct way is to press Windows + X and select Terminal (Administrator).

You can also open CMD or PowerShell with those permissions from the Start menu. The important thing is to choose the tool indicated in the tutorial and grant the elevation when Windows prompts you: opening a console in the usual way does not automatically grant administrator rights.

How to open Terminal as administrator in Windows 11

Desktop with multiple monitors displaying terminals and monitoring tools

  1. Right-click on Start or press Windows + X.
  2. Select Terminal (Administrator)Depending on the version, it may appear as Windows Terminal (Administrator).
  3. When the notification appears User Account Control (UAC)Authorize the opening. If it asks for credentials, you will need to enter those of an administrator account.
  4. Wait for the new window to open and select the profile you need.

Terminal will open in its default profile, which may be PowerShell. If you need CMD, click the arrow next to the new tab button and select System symbolTabs open within that elevated window will also have administrator privileges.

The same menu includes other system tools. You can see which ones it includes in our guide. Windows + X menu of Windows 11.

What to do if Terminal doesn't appear in Windows 10

In Windows 10, the menu may show Windows PowerShell (Administrator) o Command Prompt (Administrator)The available option depends on your settings. If you specifically need CMD, you can use the Start menu search bar, as explained below.

How to open CMD or PowerShell as administrator from Start

This method allows you to directly choose the interpreter in Windows 10 and Windows 11:

  1. Open Start and write cmd To search for Command Prompt, type the appropriate name for PowerShell or Terminal.
  2. Right-click on the result and select Run as administrator.
  3. Respond to the UAC prompt with the authorization or credentials it requests.
Exclusive content - Click Here  How to create a DxDiag report to diagnose your PC

In some versions, Run as administrator It also appears directly in the search results panel. If you search for CMD, it may open within Terminal depending on your default terminal application; this doesn't change the fact that you're using Command Prompt.

Terminal, CMD, and PowerShell are not the same

It's important to distinguish between them to avoid pasting a command in the wrong place:

  • Windows Terminal: It is the application that organizes sessions into tabs and panels.
  • Command Prompt or CMD: It is the traditional Windows interpreter, also used to run batch files.
  • PowerShell: It is another command and automation environment, with its own instructions and syntax.

Although certain tools work from both interpreters, not all of its commands are interchangeableIf a guide indicates CMD or PowerShell, select that profile before continuing.

How to check if the console has elevated privileges

Monitor displaying a command terminal and system logs

In a classic CMD window, the title usually includes Administrator: Command PromptIn Terminal, look for the administrator icon at the top of the window. Its appearance may vary if you have customized the titles or interface.

The starting path does not prove that you have elevated permissions. See C:\Windows\System32 It only indicates the current working directory. Terminal can use that folder when starting from Start, and it also allows you to configure a different location.

Furthermore, your account belonging to the administrators group does not mean that all its applications will run with elevated privileges. If you have any doubts, open a new window using Run as administrator and use that session.

What to do if Windows asks for a password or denies access

The behavior of the notification depends on the account type and the team's policies:

  • With an administrator account: Normally, simply approving the request is sufficient, although the configuration may require credentials.
  • With a standard account: Windows typically requires the username and password for an administrator account. The standard user account password does not grant these permissions.
  • In a managed team: The organization may block the lift. In that case, you will need to request assistance from the team administrator.
Exclusive content - Click Here  Solutions when videos and files don't appear on Reddit and YouTube

Running as administrator enables administrative tasks, but It does not remove all Windows restrictionsIf a command continues to show access denied, check which resource it is trying to modify and the permissions or policies that apply.

How to change folders in CMD and PowerShell

If you're going to work with files from your profile, you can change the working directory. CMD, uses:

cd /d "%USERPROFILE%"

the modifier /d It also allows you to change the unit if necessary. PowerShellUse this syntax:

Set-Location $env:USERPROFILE

Both instructions point to the profile of the account that is running the session. Changing folders does not reduce console privilegesTo work without elevation, open another window as usual.

How to run a BAT or CMD file as administrator

If the instructions are saved in a file .bat o .cmdRight-click on it and select Run as administratorIf the option does not appear in the first menu of Windows 11, check Show more options.

For example, some procedures for fix a blocked print queue They use scripts that need to manage services. A simple double-click does not guarantee that the file will run in elevated mode.

Use elevation when the task requires it, as is the case with certain operations of Windows repair using SFC and DISMWhen you're finished, close the administrative window and continue with a normal console for tasks that don't require those permissions.

Exclusive content - Click Here  How to use Task Manager to identify slow processes

Frequently Asked Questions

How do I know if the Windows terminal has been opened with administrator privileges?

You can verify this by looking at the window title, which should say Administrator: Command Prompt, and checking that the initial path is C:\Windows\System32.

What should I do if the system does not respond when I enter the administrator password?

This problem may be due to failures in the user profile service or to the administrator account not being enabled, especially in older versions such as Windows 7.

Is it dangerous to work directly in the System32 folder?

Yes, because it's a confidential directory with files essential for Windows to function; it's recommended to change to the user folder using the command cd %userprofile%.

Is there a command similar to Linux's "su" for Windows?

Windows does not use an identical command to elevate privileges within a session, but requires running the program specifically as administrator from the start.

How can I run a .bat script with elevated privileges?

The script must be executed through a process that already has administrator permissions, using the right-click and Run as administrator method.

What happens if I don't right-click and open CMD normally?

The terminal will open in limited mode, preventing changes to system files or the execution of commands requiring management permissions.

Alberto Navarro

Alberto Navarro

I'm a technology enthusiast who's turned my geeky interests into a profession. I've spent over 10 years using cutting-edge technology and tinkering with all sorts of programs out of pure curiosity. Now I specialize in computer technology and video games. For more than 5 years, I've been writing for various technology and video game websites, creating articles that aim to provide you with the information you need in language that everyone can understand.

If you have any questions, my knowledge ranges from everything related to the Windows operating system as well as Android for mobile phones. And my commitment is to you, I am always willing to spend a few minutes and help you resolve any questions you may have in this internet world.