Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Clear the Windows Command Prompt Screen
Next article icon

How to Open the Command Prompt as Administrator in Windows

Last Updated : 12 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

The Command Prompt is a powerful tool in Windows that lets you run commands to manage files, troubleshoot problems, and control system settings. But some commands require administrator access to work properly. Opening the Command Prompt as an administrator—often called “elevated mode” gives you full control to perform advanced tasks on your computer.

In this guide, we will discuss quick and easy ways to open the Command Prompt with administrator rights on your Windows 10 and 11.

Method 1: Using Windows Search (Windows 10 & Windows 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open the Start Menu and Type "CMD"

Press the Windows Key or Click on the Start Menu and Type Command Prompt or CMD and proceed ahead.

command-prompt---start-menu
Open Command Prompt

Step 2: Select "Run as Administrator"

Right-click on "Command Prompt" and select "Run as administrator''.

Run-CMD-as-an-Administrator-Using-Windows-Search
Run CMD as Admin

Method 2: Run Dialog Box (Win 10 & 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open Dialog Box or Press Win + R

First, press the Windows key + R to open the Run dialog. Now, type "CMD" or Command prompt

run-dialogue-box---cmd
Run Dialogue (Win + R)

Step 2: Hold down Ctrl + Shift to enter Admin Mode

Press Ctrl + Shift + Enter or click "OK" while holding Ctrl + Shift.

Run-CMD-as-an-Administrator-Using-the-Run-Dialog
Use Dialog Box

You might be asked to enter admin password. Provide the same & proceed with the Command Prompt administrator rights.

Method 3: Quick Access Menu (Windows 10 & 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open Power User Menu

Go to Start Button or press Win + X

Power-User-Menu
Win + X

Step 2: Select Admin

Now, click on "Terminal (Admin)" from the menu.

Run-CMD-as-an-Administrator-via-the-Quick-Access-Menu
Use Terminal

Step 3: Hover and click to visit Command Prompt

Then, Click on the arrow from the menu and Select "Command Prompt"

Run-CMD-as-an-Administrator-via-the-Quick-Access-Menu-1
Select Command Prompt

By following this method, anyone can open command prompt using these 3 simple steps.

Method 4: Use Windows Tools (Windows 11)

Note: This method is suitable forWindows 11

Step 1: Type Windows Tools in the search box

Click on the Start menu and type Windows Tools

Step 2: Click to Open as Administrator

Make a right click and select "Run as Administrator"

Open-Command-Prompt-As-Administrator-using-Windows-Tools
Windows Tools

Method 5: Using Task Manager (Win 10 & Win 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open Task Manager and click to Run New Task

Click the Start Menu and type "Task Manager"

Step 2: Create a New Task to Run CMD with Administrative Rights

Create a new task in the File menu and select Run New Task. Check "Create this task with administrative privileges", and click OK.

Run-CMD-as-an-Administrator-Using-Task-Manager
Using Task Manager

Method 6: Use Control Panel (Windows 11)

Note: This method is suitable for Windows 11

Ypu can use Windows Control Panel to open Command Prompt with admin rights, here's what you need to do:

Step 1: Press Win + R and type Control Panel

Now, on the Control Panel Search bar type "Windows Tools" and click on it.

Run-CMD-as-an-Administrator-Using-the-Control-Panel
Use Control Panel

Step 2: Click to Run as Administrator

Right-click on the Command Prompt and Click Run as administrator.

Open-Command-Prompt-As-Administrator-using-Windows-Tools
Run as Admin

Method 7: Windows File Explorer

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open File Explorer

Open File Explorer or press Win + E and type CMD

Step 2: Select "Run as Administrator"

Make a right-click and select "Run as admin"

Run-CMD-as-an-Administrator-Through-File-Explorer
Through File Explorer

Method 8: Using Desktop Shortcut

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open File Explorer

Press Win + E and type Command Prompt or CMD

Step 2: Show more options > Create Shortcut

Press Win + D to get the desktop then right-click CMD then from the menu select "Properties" and then navigate to the "Shortcut" tab

Step 3: Create your custom shortcut

In the Shortcut key field, press a key combination of your choice.

Run-CMD-as-an-Administrator-Using-a-Desktop-Shortcut
Desktop Shortcut

Why Open Command Prompt as Administrator

The Command Prompt or CMD is a powerful tool for performing various system tasks. Running it as an administrator grants you admin access to:

  • Modify System Settings
  • Run Admin commands like sfc /scannow i.e. system scans
  • Manage User Accounts
  • Access and edit restricted files

Without administrator access, many essential commands will not work, so knowing how to open it with admin access is critical for users who manage system settings, developers, or anyone performing any troubleshooting related tasks.

Conclusion

Understanding how to open the Command Prompt as Administrator is essential for both casual users and power users. Whether you're managing system configurations, running scans, or troubleshooting issues, knowing how to run CMD with elevated privileges will enhance your ability to manage your system effectively.


Next Article
How to Clear the Windows Command Prompt Screen
author
saurabhkumarsharma05
Improve
Article Tags :
  • TechTips
  • How To
  • Command Prompt

Similar Reads

  • How to Open Command Prompt in Windows 11, 10, 8, 7
    The Command Prompt is a powerful tool in Windows for executing commands, troubleshooting issues, and automating tasks. Whether you're using Windows 11, 10, 8, or 7, this guide covers all the methods to open Command Prompt quickly and efficiently. 8 Proven Methods to run the Command Prompt (cmd) in W
    8 min read
  • How to Clear the Windows Command Prompt Screen
    If you've been working in the Windows Command Prompt and your screen is cluttered with text, knowing how to clear the Windows Command Prompt screen can make your workspace much tidier and easier to manage. This simple task can help you focus on the commands you're working on without distraction. In
    6 min read
  • How to Open Windows PowerShell as an Admin in Windows 11?
    Windows Powershell is a powerful command-line shell and scripting language devised for administrators and professionals. PowerShell with administrative privileges in Windows 11 makes it possible to carry out tasks with superior permissions. This article will discuss several ways of opening Windows P
    4 min read
  • How to Change Administrator Account in Windows 11?
    Windows has two account types: Standard and Administrator. The standard user group provides minimal access to features in comparison to the Administrator group, where app installation and command execution tasks are allowed. To change an administrator account, grant administrator privileges to a reg
    3 min read
  • How to Disable Administrator Account in Windows?
    An administrator account allows you to make changes and check the activities of other users. An administrator account can Change user accounts Modify security settings Install software and hardware applications. You can disable the hidden administrator account if you are the only user of your system
    2 min read
  • How to Open Local Group Policy Editor in Windows Home?
    Opening the Local Group Policy Editor in Windows Home can be tricky, as this feature is typically unavailable in the Home edition by default. However, workarounds exist to access Group Policy on Windows Home and manage system policies effectively. In this guide, we’ll show you how to enable Group Po
    5 min read
  • How to Use Command Prompt - Windows Command Prompt Guide
    Learn how to manually run the Command Prompt in different versions of Windows - The Windows Command Prompt (CMD) is a powerful tool that allows users to execute commands, automate tasks, and troubleshoot system issues efficiently. Whether you’re a beginner looking to learn basic CMD commands or an a
    5 min read
  • How to Repair Windows 10 Using Command Prompt - 5 Methods
    Is your Windows 10 not working right? Maybe it’s slow, keeps crashing, or won’t start properly. These problems can be annoying, but you don’t have to do something big like reinstalling Windows yet. There’s a handy tool called Command Prompt that can fix many Windows issues, and it’s already on your
    6 min read
  • How to Change Colours in Command Prompt?
    Customizing the appearance of your Command Prompt can make your coding or command execution sessions more enjoyable and easier on the eyes. In this guide, we'll walk you through the process of changing colours in Command Prompt, from altering text colour to adjusting the background for better clarit
    3 min read
  • How to Open Camera in Windows?
    laptopsHow To Turn on Camera on Laptop Windows 10: Each Windows device comes with one dedicated Windows Camera. For Windows Laptops, the Camera is built within the monitor. For Windows Desktop, we have to attach an external camera device to utilize as a webcam as well as a normal one. The webcam fea
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences