In my new position I don’t get to play much with the ole IT Pro skills I spent years honing. So when I get a chance to dust off the knowledge tomes it is always fun. Today’s lesson: How to launch IE from the command line. Today’s lesson comes in 2 parts. First, we will see how to launch IE from the command and go to a website. Then we will look at different ways of launching IE (using different credentials)
So here we go!
Here is the first piece. Go to command prompt and type the following:
“C:\Program Files\Internet Explorer\iexplore.exe” (INCLUDE the quotes – but not this comment 😉 )
Now to add the specific webpage
“C:\Program Files\Internet Explorer\iexplore.exe” http://gorling.ca/blogs (INCLUDE the quotes – but not this comment)
So far so good? A little bit of code never hurt anyone, right? This could come in handy so lets put it on the back burner for now and we may come back to it later if we ever need it.
Here is the second part of the lesson for today:
runas /user:domain\username iexplore.exe
So this lovely little command lets you enter the password for a user (defined in “username” and if you know the password for that account launches the given application (“iexplore.exe” in this case)
A neat little addition is the following:
runas /user:domain\username /savecred iexplore.exe
This one switch will allow the credentials to be saved for future use.
Now I wish I had the third part of this. It would be great if we could launch IE as another user AND open a specific web site in the same command…
I am working on the last bit as we speak and as soon as I find the way to make it work I will make sure to update all of you, dear readers