How to run cmd as an administrator

Command prompt ( cmd ) is a command-line interface used to execute commands in the Windows operating system. Sometimes, you will need to perform a task that requires administrator privileges. For that, we need to specifically open cmd as an administrator.

There are two ways for us to perform this task:

Search cmd

You can open cmd as an administrator by searching for it in the Windows search bar located in the bottom left corner of the desktop screen. Then, right-click on Command Prompt and select Run as administrator.

svg viewer

Using the run command

You can also open a command prompt using a run-box (Windows + R). To do so, open a run-box, write cmd, and press Control + Shift + Enter to open the command prompt as an administrator.

svg viewer
New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved