running chrome as different user Batch or Powershell

i have a user that needs to run the chrome browser as another user.  I don't want her to have to remember the password for this user.  fyi... it is a windows domain.
I am open to using powershell or a batch file.

how would i write this in either.
fictitious information to use.
user is logged with user name    contoso\Janedoe

user needs to run chrome as contoso\johndoe  with a password of      Blueberry

i would also like for chrome to automatically open up the website http://banking.com

I basically need the user to have an icon somewhere that when she clicks on it.  it runs chrome as different domain credentials - hopefully without prompting her for credentials either.
Thanks guys
jamesmetcalf74Asked:
Who is Participating?
 
RobertSystem AdminCommented:
I think the way I would do something like this is to use the Runas command and use the /savecred flag.
This will make it prompt for the password the first time then use the saved credentials after that.
1
 
Vince MabarySystems and Database AdministratorCommented:
Robert offers a good solution.  Might I ask, why?  It just seems strange that a user needs to access a webpage as another user (domain-wise).  Good luck!
0
 
jamesmetcalf74Author Commented:
thanks guys
runas cmd worked well
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.