Command Prompt/Elevated

The Command Prompt is the command line interface (CLI) provided with Microsoft operating systems. This activity will show you how to open an elevated/administrator command prompt.

Note: To complete this activity, you must have an administrative user account or know the username and password of an administrator account you can enter when prompted.

Readings

edit

Preparation

edit

To prepare for these activities:

  1. Start Windows.
  2. Log in if necessary.

Activity 1 - Open a Command Prompt

edit

Two different methods for opening a command prompt are available. These include the Start menu and the Run command box.

Method 1 - Start Menu

edit

To access a command prompt using the Start menu:

  1. Open the Start menu.
  2. Select All Programs.
  3. Select Accessories.
  4. Right-click on Command Prompt.
  5. Select Run as administrator.
  6. If you see a User Account Control dialog box asking if you want to allow the following program to make changes to this computer, select Yes.
  7. If prompted for a username and password, enter an administrative username and password to continue.
  8. Observe that the title bar of the command prompt is "Administrator: Command Prompt", indicating that it is running with elevated privileges.

Method 2 - Run Command

edit

To access a command prompt using the Run command box:

  1. Open the Start menu or press the Windows key + R.
  2. Type cmd or cmd.exe in the Run command box.
  3. Right-click on cmd.exe.
  4. Select Run as administrator.
  5. If you see a User Account Control dialog box asking if you want to allow the following program to make changes to this computer, select Yes.
  6. If prompted for a username and password, enter an administrative username and password to continue.
  7. Observe that the title bar of the command prompt is "Administrator: Command Prompt", indicating that it is running with elevated privileges.

References

edit