Opening Command Prompt with elevated permissions enables administrative commands that would otherwise fail with “Access is denied”, such as managing services, changing protected system settings, or querying privileged system state.

C:\Users\user>net session
System error 5 has occurred.
Access is denied.

On modern Windows versions, User Account Control (UAC) launches consoles with a standard access token by default, even for accounts in the Administrators group. Starting an elevated cmd.exe instance creates a separate process with a full administrator token, which is typically shown by an Administrator: prefix in the window title.

Elevation may require confirming a UAC prompt or entering administrator credentials on non-admin accounts, and everything started from that elevated window inherits full rights. Keep elevated sessions short, avoid running untrusted scripts, and close the elevated console after completing the required task.

Steps to open Command Prompt as administrator in Windows 11:

  1. Confirm the current account is an Administrator account.

    Non-admin accounts typically show a credential prompt instead of a simple approval dialog.

  2. Open the taskbar search box.
  3. Search for command prompt.

    Use Ctrl+Shift+Enter to start the selected result elevated from the search results.

  4. Right-click Command Prompt in the results list.
  5. Select Run as administrator.
  6. Approve the User Account Control prompt.

    Anything launched from the elevated Command Prompt runs with full administrator rights and can make system-wide changes.

  7. Verify the title bar shows Administrator: Command Prompt.

    An elevated prompt commonly opens in /C:\Windows\System32.

  8. Run the required command in the elevated window.
    C:\Windows\System32>net session
    There are no entries in the list.

Discuss the article:

Comment anonymously. Login not required.