?
Solved

How to use ShellRunAs in Startup Folder

Posted on 2009-03-30
4
Medium Priority
?
2,381 Views
Last Modified: 2013-12-04
Hello All-

I administer a Domain where I am the only Vista user.  I use the ShellRunAs app and love it!  It's exactly what I needed.  I do restart my machine daily and would like for a couple of programs to run automatically with different credentials.  Currently, once I get into Windows (Vista32), I right click on about 3 program's icons, choose the newly added "Run As Different User, type my admin credentials, then they load.  The easy answer would be to add these to the "Startup" folder or msconfig, but what switches do I need to put in the command line?

An example command line - let's say for iexpore.exe - would be great as well - Thanks!

Ben
0
Comment
Question by:BzowK
  • 4
4 Comments
 
LVL 14

Expert Comment

by:BigBadWolf_000
ID: 24021523
Usage: shellrunas [/reg | [/quietreg ] | /regnetonly [/quiet] | unreg | [/netonly] <program> <arguments>
/reg              Registers ShellRunas shell context-menu entry
/regnetonly Registers Shell /netonly context-menu entry
                     Note: a command prompt will flash when the program starts
/unreg         Unregisters ShellRunas shell context-menu  entry
/quiet           Register or unregisters ShellRunas shell context-menu entry without
                     result dialog
/netonly         Use if specified credentials are for remote access only
<program>   Runs program with specified credentials and parameters
0
 
LVL 14

Expert Comment

by:BigBadWolf_000
ID: 24021554
I believe ShellRunas does not accept parameters on the command-line for username and / or password.
0
 
LVL 14

Accepted Solution

by:
BigBadWolf_000 earned 1500 total points
ID: 24021605
0
 
LVL 14

Expert Comment

by:BigBadWolf_000
ID: 24021626
Example...
psexec -u blah\blah -i c:\windows\system32\mmc.exe c:\windows\system32\dsa.msc
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes Administrators rights are not enough. These cases call for the SYSTEM account. The process in this article outlines the steps required to execute commands using the SYSTEM account.
What monsters are hiding in your child's room? In this article I will share with you a tech horror story that could happen to anyone, along with some tips on how you can prevent it from happening to you.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question