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:
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.
run
commandYou 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.