ITsVISTA
Information that makes life easier when it comes to installing, managing, and using Windows Vista.
Start About FAQ Blogroll Shop

ITsVISTA Tip 3: Run the Vista Command Line as Administrator

TipsWith Vista’s User Account Control (enabled by default), there are times that you’ll need to do things, and not have rights to do them. If you are comfortable with command line utilities, a possible option is to run a command line with Administrator rights.

Normally, to start a command line, you would click on Start, type cmd and press Enter. This would open a command line window that looks like this:

Opening a command line with administrator rights is similar. Click on Start, type cmd, but this time, don’t press Enter, instead, press CTRL+SHIFT+Enter. You’ll be prompted to approve the action, and will then see a window that looks like this:

Note the Administrator: label that appears at the beginning of the window title as a reminder that it is running as Administrator.

This tip was spotted at jkontherun.blogs.com/jkontherun/2006/12/early_vista_tip_2.html.

Get notified of new posts for FREE via RSS or E-mail

Subscribe to ITsVISTA!

Comments

  • 30 Tips for Getting More (or Less) Out of Windows Vista | ITsVISTA

    Jan 31, 2007 at 9:39 am

    [...] Run the Vista Command Line as Administrator [...]

  • chuck

    Mar 8, 2007 at 5:41 pm

    vista what a waste of money very unhappy can`t even install printer was told where I bought pc to get rid of vista will never use vista again

  • Joe

    Mar 8, 2007 at 6:14 pm

    Doesn’t really belong on this page, but since you’re here, why couldn’t you install your printer? Did it not have a Vista compatible driver? Most issues are solvable, but old hardware that doesn’t have compatible drivers would be one that isn’t. It’s never been said that owning Vista is cheap!

  • Shawn

    Mar 9, 2007 at 5:50 pm

    first, i just received my new laptop with vista business preloaded and i have been busy trying to work out all the bugs…so thanks for the site.
    second, this doesn’t seem to work for me…still keeps opening as ‘user’. any ideas?

  • Joe

    Mar 9, 2007 at 6:47 pm

    Welcome to the party. Do you get the UAC prompt when you try, or does the command window immediately open as a normal user?

  • Shawn

    Mar 9, 2007 at 7:25 pm

    thanks!

    It immediately opens up as normal user.

  • Joe

    Mar 9, 2007 at 7:46 pm

    Hmmm. Seems to me either UAC is deactivated, and perhaps you already have admin rights so it doesn’t show ‘administrator’ in the title bar (doesn’t seem likely, but I never tried it so I can’t be certain), or the keyboard combination isn’t being seen. I would try different combinations of the left and right versions of the CTRL and ALT keys just in case one isn’t working right. If that doesn’t do it, type ‘cmd’ in the search box. When it appears in the program list, right-click it and choose ‘run as administrator’ just to see if that work correctly.

  • Shawn

    Mar 9, 2007 at 8:59 pm

    odd, I have tried every key combination that I can think of with no success but running cmd as administrator brings it up like it should be.

    I can work with that.

  • Emilio

    Mar 15, 2007 at 8:49 pm

    I think you are trying to press CTRL+SHIFT+ENTER in the “run” dialog. You have to do that in the “search” dialog at the bottom of the start menu. It works good.

  • Joe

    Mar 15, 2007 at 9:01 pm

    Good point Emilio, must be in the ‘Search’ box, not the run box!

  • buddie

    Mar 16, 2007 at 3:03 am

    is there a way to gain admin rights once you’re inside the command box? my user is an admin, i don’t know how to level up my privilege.

  • Joe

    Mar 16, 2007 at 8:06 am

    So far the only ways I’ve seen to get those elevated privileges are by granting them to the command prompt before it opens. I haven’t seen any kind of command line that would allow it to elevate itself. If their was, it would surely involve the entering of credentials.

  • Emilio

    Mar 16, 2007 at 8:20 am

    You can try with runas (write runas /? in command window for help), but I couldn’t make it.

  • Jesse

    Apr 7, 2007 at 4:16 pm

    Joe,
    Is there a way to make programs that Windows Defender blocks on startup to run normally? I have a couple programs that are blocked from running on the start-up of my laptop that is blocked by Windows Defender.

    Thanks for the help,
    Jesse

  • John Piercy

    Jun 12, 2007 at 3:59 pm

    My gf wiped vista and installed Fedora 7 due to having some weird problems. She complained that she couldn’t play movies or anything. I’m considering doing the same. Anyone else used Fedora? I’m new to Fedora but she makes it look easy enough so… I found this page searching for a permissions problem on vista. Now I see that I need to run this command in a command line as administrator. Thanks!

  • Alan Spicer

    Jun 28, 2007 at 9:44 pm

    This article is confusing. It says just to Click Start and Type “cmd”. Well that’s great, you can’t do that. Anyone would assum that you mean to do that in the run box. Doesn’t seem to work there. Doesn’t seem to work in Search either.

    However, you can click Start, Programs, Accessories. Then right click Command Prompt and left click “Run as administrator”. There you go the correct results you are talking about. Probably easier for most users to figure out as well. Probably this is also the easiest way to run anything as Administrator. Although there probably aren’t many things that users should run as Administrator.

  • Alan Spicer

    Jun 28, 2007 at 9:50 pm

    Also I’m looking for shortcut commands to type in the RUN box. It’d be nice if there was one to open the “Manage Network Connections”. I’m always in there.

    Anyway you know like “services.msc”, mstsc, and stuff like that.

  • Joe

    Jun 28, 2007 at 10:02 pm

    It sounds as if you are running Windows XP. This tip, as the title implies (and as are all other tips on this site), is for Windows Vista. The only other way to get the behavior you describe would be if you are using Vista, but have changed to use the ‘Classic’ Start menu, which would be an exception that few would do. If that is the case, the method you describe would likely work, though it’s not as easy as using the search box.
    Typing “Sharing” in the Search box will get you to the Network and Sharing Center, which is one click away from the ‘Manage Network Connections’ screen, but I don’t see anything that you can type to get you directly there.

  • Alan Spicer

    Jun 29, 2007 at 12:40 am

    Running Vista, Windows XP, Windows 2000, 2000 server, 2003 server, Fedora Core.

    I was in Vista Enterprise in MS Virtual when I wrote that. I have to admit I did have the ‘Classic’ Start menu on. Wow that’s kind of lame that they dump you right into a search box with your cursor in the box, right away in the Start Menu.

    Just finished reading Neal Stephensons’ In the Beginning was the Command Line, that someone else suggested might be an interesting read. Maybe I’m just still stuck on that read, or maybe he and I are about the same age (plus or minus a year) … but that Search Box thing almost makes me want to call it a Macintosh’ism.

    What I hated most about Vista (first impressions) is I had to dig all over the place to find stuff. The Classic Mode eases that a little bit.

    So I stand corrected because of the Classic Mode I was in.

    P.S. still looking for a list of commands for the run box or command prompt that brings up many of the programs, utilities, control panels, etc. in Vista. Some I noticed are the same as in XP.

    Alan Spicer -
    http://telecom.dyndns.biz/

  • Gill

    Dec 17, 2007 at 10:42 am

    Fedora is awesome. GUI looks just like windows and programs aren’t that hard to install.

    Fedora is lot more powerful and robust than Windows. You can use shell prompt to get the most out of Fedora.

    Only thing you need to worry about Fedora is obtaining drivers for some hardware. Desktop computers don’t seem to have any issues, notebook computers may have issues, but you can always find drivers from google search.

  • Maud

    Jan 6, 2008 at 12:01 pm

    I’m a Vista user who recently downloaded a program that keeps telling me it requires administrator priveleges to run. However, I am the only user on the computer and I am an administrator. Help?

  • Joe

    Jan 13, 2008 at 1:01 pm

    @Maud: You might try right clicking the the programs executable and choosing ‘Properties’. Check the ‘Run as Administrator’ box and hit OK. Does that fix it?

  • Dee Conant

    Jan 16, 2008 at 2:31 pm

    I go to wildbunchradio.com and try to get into the chat room on sundays 11-1pm and vista will nt bring it up. What do I hve to do? I do not understand the add on chat and tried it, but were do I copy/paste it too?

  • Alexander

    Oct 20, 2008 at 8:48 am

    Hello!

    Advanced Run is the most powerful free launcher that allows you to run any program, run any command line command, open and edit and print documents on behalf of any user account without switching between users.

    Advantages:
    – Advanced Run substitutes standard Windows Run feature so it is easy to run it by pressing [Win]+[R] standard key combination.
    – Pick Advanced Run… context menu item on whatever file you want to run or open.
    – Pick any user account you need, type it’s password and run a command without switching between users.
    – Select security profile to gain or reduce the privileges of the process you run.
    – Use command templates to dramatically automate your frequent and routine actions.
    – Specify implicitly shell verbs to perform additional actions on the file you need to open.
    – Use command shortcuts to automate your routine work.
    – Share your settings, security profiles and command shortcuts within your corporate network.
    – Take advantage of preinstalled security profiles and a whole bunch of useful command shortcuts.
    – Advanced Run has always been and always will be completely free!

    Check it out at http://www.ilyns.com/advanced-run.asp !

  • Michael

    Oct 22, 2008 at 10:14 pm

    just wanting to know when u first use window vista does it has a pw for administrator or its pw free till u put 1 like when i go into that thing which is run as administrator i can leave the pw box blank right or no?

  • Michael

    Oct 22, 2008 at 10:19 pm

    also i know this isin’t on this topic but can some1 show me a link to what aviable games,programs is able to be used but is used with run command or is used run without command.

  • Michael

    Oct 22, 2008 at 10:20 pm

    without run command*

  • Bob

    Nov 18, 2008 at 4:39 pm

    Can you install Vista from the Command line?
    I’m a user who’s very used to doing things from the CLI rather then the GUI. However, I haven’t tried installing Vista yet. Just wanted to know if anyone else has tried.

  • spot

    Nov 18, 2008 at 4:43 pm

    I have an interesting problem I’ve never had before. I have installed Vista quite a few times now with my inhome computer repair business. But I recently got a new Dell Studio 17 to work on. The user wants to get Vista UE installed and has a disk, but the problem we are both running in to is any time we put the UE disk in to upgrade, the upgrade option is not avaliable. So, we try to install from scratch, only to get stopped when the installer asks for a CD/DVD Driver. After we put the drivers CD in, one driver returns and when we select it and click on next, it loops. We have had no luck at all! Any clue on how to get around this?

  • Ram

    Dec 18, 2008 at 12:25 am

    can u tell hw to hack windows vista password…
    how to change administrators password without knowing the older one…

  • admin43

    Mar 15, 2009 at 8:35 am

    Ctrl+Shift+Enter for the admin console ???
    What had Vista programmers been thinking about? Looks as a secret key combination in a kids computer game… Admins are cheaters, aren’t they?

  • Dave

    Apr 30, 2009 at 9:13 pm

    I’m trying to remember a command that a Dell tech told me about to go in and delete history/registry etc…I had to go from the “start” then enter this command word in the search box. I just can’t remember what it was. I could select all of the items and then delete them. Is there a list of commands like “msconfig”? I know if I saw it again I’d remember what it was.

Leave a Comment