Getting to the Command Prompt
This is a question that just keeps coming up, so my goal here is to provide one simple blog post that has all the options so I can always just point here when I refer to the need for a command prompt or command prompt with admin privileges. If you have any comments or other methods you prefer, please comment and share!
If you are just running a quick command that does not require admin access, you can type it right into the Start > Search box. Just hit the windows key and start typing. When given a command it behaves just as the old "Run" dialog did.
Looking for that Run dialog? Given the above, you don't need it, but if it makes you comfortable: you can get it back by right-clicking on the task bar, choosing properties and then clicking the "Customize" button on the start menu tab. You'll find "Run command" about half way down the list, just check this box it to have it shown.
If you want to hunt for it, "Start" > "All Programs" > "Accessories" > "Command Prompt" is where you'll find it. You can also just type some or all of the title in that trusty "Start" > "Search" box I keep mentioning; just hit enter to have the item returned at the top of the search results launched.
However, quite often I find that the things you want to do from the command line need to be done with elevated privileges. Therefore you either need to create your own shortcut that is set to run with elevated privileges, or right click on an existing shortcut so you can choose "Run as administrator".
1) Create a shortcut on your desktop:
Right click and drag the shortcut from "Start" > "All Programs" > "Accessories" > "Command Prompt" to your desktop and when you let go, choose "Create shortcut here". Alternatively, you can create a new one by right-clicking on the desktop and choosing "New" > "Shortcut". For the name and location, you only need to enter "CMD" and hit enter. Then give your shortcut a name and you’re done.
2) Force it to run as Administrator:
Now you can always right-click this shortcut and choose "Run as administrator" but to avoid that step, right click the shortcut and choose "properties". Click the "advanced" button and select the "Run as an administrator" checkbox. Press OK and you've got a command prompt ready for your "admin" tasks.
Yes, you'll still have to answer the UAC prompt each time (the only way to avoid that is to turn off the security feature altogether.

Email This!
Digg it!
Del.icio.us
Reddit!
Newsvine
Comments
Not having a Vista system running at the moment to try it on but doesn't WINKEY-R still get a run dialog in Vista?
Posted by: Bill Prentice | August 8, 2007 4:49 PM
It does indeed, WIN-R. But there really is no need (you can just hit the WINKEY and start typing your command now)
Posted by: Bob Kelly | August 9, 2007 11:43 AM