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.