Windows Tip: Getting RunAs back in Vista

By Mitch Tulloch, ITworld |  Windows, Mitch Tulloch, RunAs 3 comments

For the last while I've been on the Service Pack 1 beta for Windows Vista and in my opinion SP1 has fixed most of the issues the original RTM release had, especially performance issues. So I'm confident that enterprises will begin accelerating their deployment plans for Vista now that SP1 is about to be released. One thing is still missing from Vista however, and that's the capability you had in XP to right-click on a program or shortcut on your desktop or in Windows Explorer, select RunAs, and run the program with any credentials you want to specify. Instead, Vista replaced this feature with Run As Administrator, which lets you run a program as an administrator (if you know the credentials for an admin account) while logged on to your computer as a standard user.

But what if you want to run a program using different (non-administrator) credentials? This has been a major complaint among some enterprises as some management applications need to be run using a special account, or may even require running under domain admin creds-and logging onto a Vista workstation (or any workstation for that matter) using domain admin creds is not a very good idea (get the Windows Server 2008 Security Resource Kit from Microsoft Press when it's released to find out
why).

A workaround you can use is to use runas.exe from the command-line, which still works the same way it did in XP. But if you work more with the Explorer shell than from the command-line, this loss of right-click'n'runas functionality is frustrating. Another workaround is to create a shortcut to runas.exe that specifies the program you want to run and the credentials you want it to run under. For example, you could create a shortcut to

C:\Windows\System32\runas.exe/user:CONTOSO\Administrator "C:\Program Files\Internet Explorer\iexplore.exe"

and when you double-click on the shortcut you can type the password for the Administrator account in the CONTOSO domain and Internet Explorer will launch using these credentials. This is tedious though if you have a lot of different programs you need to run this way.

Is there no hope for bringing back RunAs to Vista? You bet they do! Just a couple of days ago, Mark Russinovich, the creator of the Windows SysInternals suite of power tools, released a new tool called ShellRunas which lets you add back the right-click'n'runas functionality you had in XP. Just download the package from here, unzip it, run shellrunas /reg from the directory you unzipped it to, and Presto! You can right-click on a program in Explorer and get Run As Different User as an option.

So does Microsoft listen to their customers? Well, Mark does, anyway -- thanks Mark!

3 comments

    Anonymous 3 years ago
    fails to shock me how retarded ms can be at times
    Anonymous 3 years ago
    Hey there,Although you can use the RunAs.exe from the command line, you can also add it back into the Windows Explorer Context menus. Take a look here for more info: http://www.groovypost.com/howto/microsoft/vista/add-runas-to-explorer-context-menu-in-vista-and-server-2008/Thanks,-MrGroove
    Anonymous 2 years ago in reply to Anonymous
    i am a programmer that designed a software to replacethe windoes Runas command, it will even add a menu so when you righk click on a file the RunAs Command will be there. it is totaly interactive and you can even supply the password without opening/typing it in a commandPrompt window. it has been tested on xp but not vista, but all my software is usually vista compatible.viruz_man@hotmail.com

      Add a comment

      Post a comment using one of these accounts
      Or join now
      At least 6 characters

      Note: Comment will appear soon after you have activated your account.
      Obscene/spam comments will be removed and accounts suspended.
      The information you submit is subject to our Privacy Policy and Terms of Service.

      ITworld LIVE

      WindowsWhite Papers & Webcasts

      White Paper

      Microsoft Volume Licensing Reference Guide

      This guide provides an overview of the key features of Microsoft Volume Licensing programs. The information is presented by organizational type and size-two of the most important keys to determining your best Volume Licensing option.

      White Paper

      HP Software Licensing & Management Solutions for Microsoft

      See how HP Software Licensing & Management Solutions (SLMS) can help you identify the best Microsoft licensing program for your needs, get the most from your licensing agreement, and maximize your Microsoft software investment.

      White Paper

      Microsoft Open Value Program Guide

      In this overview, see how Microsoft Open Value provides a flexible, affordable way for small to midsize organizations (i.e. those with five or more desktop PCs) to use and manage all their Microsoft licensed products under a single agreement.

      White Paper

      Microsoft Volume Licensing Comparison - Enterprise

      With this quick-reference document, you can easily compare the available Microsoft Volume Licensing programs for enterprise organizations with 250+ devices, and tailor a program to help save costs, manage multiple licenses, and keep software up-to-date.

      White Paper

      Microsoft Enterprise Agreement Program Brief

      This white paper provides an in-depth look into how the Microsoft Enterprise Agreement Program provides with flexibility to choose among on-premises software and cloud services to best suit your user needs, and helps you optimize your technology spend as business priorities change.

      See more White Papers | Webcasts

      Ask a question

      Ask a Question