Run the command prompt with privileges

December 2016




Run the command prompt with privileges



1. Why?

Run the command prompt with the administrator privileges may be useful to perform batch commands.

Note that:Even if you are under the Administrator session, this prompt does not run with elevated privileges.

2. Solutions

Do not worry, if you check the status of your hard drive, for example, chkdsk will now be done!

2.1 Solution with the keyboard

Here is the first solution to the problem:
  • Press your keyboard's Windows key or click Start to bring up the boot menu.
  • In the search bar, type "cmd".
  • Instead of entering the search, press CTRL + SHIFT + Enter.
    • The command prompt will start in the C:/windows/system32

2.2 Solution with the mouse

  • Press your keyboard's Windows key or click Start to bring up the boot menu.
  • Click "All Programs"
  • Go into the folder "Accessories"
  • Right click on "Command Prompt" and click "Run as administrator"
  • Now all commands will be executable in the command prompt.

Notes

Note that under Windows Vista you can use method 2.1 (Solution with the keyboard) .
Here below you shall see the difference between a normal command prompt interface and a command prompt with admin priviledges.

Normal Command prompt

  • Start/ type cmd in the search bar/ press Enter

Command prompt with Admin privileges

  • Start/ type cmd in the search bar/ CTRL + SHIFT + Enter


Related :

This document entitled « Run the command prompt with privileges » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.