ghacks Technology News

Internet Explorer 8 Command Line Arguments

internet explorer 8Internet Explorer 8 is not a bad browser. No really. It is definitely better than Internet Explorer 7 or the dreaded Internet Explorer 6. Microsoft has added several interesting features to the web browser that can compete with the features offered by popular third party browsers like Opera, Google Chrome or Firefox. It is probably still the most used web browser in business and enterprise environments.

Microsoft has introduced a few new features in Internet Explorer 8 including the inPrivate privacy feature but also architectural changes that made Internet Explorer 8 a multi-process browser. Microsoft has created a handful of command line arguments for Internet Explorer 8 that can be useful under certain circumstances.

Probably the most interesting is the ability to start Internet Explorer 8 directly in InPrivate mode by using the -private argument. This can be combined with the url argument that will open a specified url directly in Internet Explorer 8. The argument to open a specific url is simply that url, for example http://www.ghacks.net/. You can add the two parameters to any Internet Explorer 8 shortcut so that you start the web browser immediately in inPrivate mode and the specified url.

A right-click and the selection of Properties should open the Internet Explorer Properties window which contains a Target form in the Shortcut tab.

Simply append -private http://www.ghacks.net/ at the end of the line. The full line should look like the following afterwards:

"C:\Program Files\Internet Explorer\iexplore.exe" -private http://www.ghacks.net/

internet explorer 8

There are two additional command line arguments available for Internet Explorer 8 that might come in handy. The -k argument starts Internet Explorer 8 in Kiosk mode which has been designed primarily for presentations. It will start the web browser without toolbars and status bar.

The final parameter is -extoff which will start Internet Explorer 8 without extensions which is useful for troubleshooting purposes.

Which leads to the closing question: Does anyone know how to always launch Internet Explorer in InPrivate mode. The shortcut works fine if Internet Explorer 8 is started from the icon but it does not help if the user clicks on a link in another program like Microsoft Outlook.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

Internet Explorer InPrivate Filter Manager
Internet Explorer 9 Tweaker
Internet Explorer 8 Ad Blocking
Internet Explorer Tweaker
Internet Explorer 8 Ad Blocking Gets Easier With Adblock IE



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Tuesday June 23, 2009 -
Tags:, , , , ,


Responses so far:

  1. The WinHelpOnline blog has a registry patch to start IE8 in inprivate mode by default.

    http://www.winhelponline.com/blog/how-to-start-internet-explorer-8-in-inprivate-mode-by-default/

  2. MiW says:

    If you modify the shell file associations with url:// in explorer, you can change the launch parameters for iexplore.exe.

    That way all clicked links will launch in private mode.

    You could even enforce this at a group policy level for an organisation, changing the shell associations for all.

    • Martin says:

      MiW I was that far but the Internet Shortcut points to “c:\WINDOWS\system32\rundll32.exe” “c:\WINDOWS\system32\ieframe.dll”,OpenURL %l and not Internet Explorer. Any idea where to put the -private parameter?

  3. LouCypher says:

    Is there
    “C:\Program Files\Internet Explorer\iexplore.exe” -uninstall
    parameter that work?

  4. Asher says:

    “introduced a few new features in Internet Explorer 8″

  5. PIP says:

    Quote:

    “Is there
    “C:\Program Files\Internet Explorer\iexplore.exe” -uninstall
    parameter that work?”

    No … your wrong … use
    “C:\Program Files\Internet Explorer\iexplore.exe” -delete

  6. Shrekker says:

    >> “Is there
    >> “C:\Program Files\Internet Explorer\iexplore.exe” -uninstall
    >> parameter that work?”

    > No … your wrong … use
    > “C:\Program Files\Internet Explorer\iexplore.exe” -delete

    I thought one could use
    “C:\Program Files\Internet Explorer\iexplore.exe” -destroy

  7. lvrennes says:

    hello, does anybody know how to start ie8 from a shortcut with mutliple tabs?

    • You can create a batch file and put multiple URLs in it. The followign code will open up IE, pause for a sec to allow the process to complete, then load the rest of your urls in new tabs.

      Open up notepad, paste in the following code substituting your own URLs and then name it with a .bat extension.

      @echo off
      start /d iexplore.exe http://www.google.com/
      PING 1.1.1.1 -n 1 -w 2000 >NUL
      START /d iexplore.exe http://www.yahoo.com/
      START /d iexplore.exe http://www.msn.com/

    • DB says:

      Just put the three, or more, sites you want them to open on as separate line entries in the Home Page field on the General tab of the Tools | Internet Options. For example:

      http://www.google.com
      http://www.google.com
      http://www.google.com

      to open three tabs on Google, or

      about:blank
      about:blank
      about:blank

      to open three blank tabs.

  8. Bill says:

    I can’t get my about:config to work…get Navigation to the webpage was canceled message? Anyone seen this before?

  9. Rodrigo says:

    Perfect!

    thx a lot

  10. Matt Dralle says:

    How to I get IE8 to open up multiple tabs to multiple URLs on start up? I used to use TabbedBroswing in the registry but that doesn’t work any more. Multiple entries on the command line don’t work. Help!

    Matt

  11. Stolen says:

    Martin, your article was lifted and republished without credit. Not cool.

    http://www.pcnewsy.com/internet-explorer-8-command-line-arguments-11525/

    • Martin says:

      Thanks for letting me know. Content scraping is still a profitable business. Takes seconds to create and will earn revenue. If you create hundreds of blogs you earn a nice living with it thanks to Google and other search engines who are not blocking it from happening.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us