0

I am trying to make a .bat file where it opens up a website and provides the necessary login information. The code I have is:

runas /user:domain-name\testname "cmd /c route add https://login.yahoo.com/config /login?.src=fpctx&.intl=us&.done=https%3A%2F%2Fwww.yahoo.com%2F
@pause

This is what I saw someone online using to run a file and provide the domain credentials necessary, so I tried to do this with this .bat file but I was unable to produce the result I am looking for. I replaced the IP address the person was using for their domain with the website address that you use to login to yahoo (assuming DNS would catch it and it would work properly). Thanks in advance for all help.

Brad
  • 359
  • 5
  • 21
  • 1
    The username passed to `runas` is a *windows* username for the `runas` program to use; it is completely unrelated to what you use `runas` to execute (the web browser) – Alex K. Oct 09 '14 at 15:50
  • See: http://stackoverflow.com/questions/22866137/automatically-respond-to-runas-from-batch-file/22870934#22870934 – Aacini Oct 09 '14 at 16:25

1 Answers1

0

After a lot effort I decided the most simplistic way to come about the solution was to create a VB web browser based off of IE that depending on the site you go to fills in passwords. Then with a

start browser.vb

I was able to start it, and give parameters as to where I wanted to go. Hop this helps for anyone who was interested.

Brad
  • 359
  • 5
  • 21