Web Analytics


New to using the command prompt? Check out the Windows Command Prompt Beginner’s Guide

Many guides on this site require you to run commands on the command prompt. This guide is written to show you how to open the command prompt. Specifically, in this guide, you’ll learn:

  • How to open a command prompt in Windows.
  • How to run the command prompt as an Administrator.

How to Open a Command Prompt in Windows

To open a command prompt in Windows, press Winkey+R (or click Start > Run), type cmd and press Enter.

How to Run the Command Prompt as an Administrator

Some guides require you to run elevated commands. This means you’ll need to run the commands as an administrator.

Windows Vista/7

There are two ways to run the command prompt as an administrator:

The first way is done by clicking the Start button, typing cmd, right clicking cmd.exe, and clicking Run as Administrator:

If prompted by UAC, click Yes. If you are not logged in as an administrator, you will need to authenticate.

The second way is to disable User Account Control (not recommended.) Now, when you run the command prompt, you will see the following text: This task will be created with administrative privileges.

Windows XP

If you are using an administrator account in Windows XP (like the ones pictured below), there is no need to run the command prompt as an administrator:

If you are not logged in to an administrator’s account, click Start > All Programs > Accessories, right click Command Prompt and click Run as…

Type in the Administrators account username and password and click OK.

You are now running the command prompt with elevated privileges.



About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix them.

Free PC tips by email

Search Windows Guides




Comments

One thought on “How to Open the Command Prompt in Windows [Quick Tip]”

  1. Lutin says:

    Hi,
    in windows7, typing : cmd
    and pressing Ctrl+Shift Enter
    will do the same (run cmd.exe with elevated privileges)

Comments are closed.


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Subscribe now
Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Windows Guides on Facebook