Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are two different Internet Explorer versions in Windows 8. I would like to open Internet Explorer for the desktop from command line.

We can run it via Win+Riexplore, but I would like to run it from the command prompt or PowerShell. Can it be done?

share|improve this question
3  
For normal command line just use "C:\Program Files\Internet Explorer\iexplore.exe" for the 64bit one or "C:\Program Files (x86)\Internet Explorer\iexplore.exe" for 32bit one – nixda Jan 8 '13 at 12:36
up vote 6 down vote accepted

Using PowerShell, I found that Invoke-Item was a key command:

Invoke-Item "C:\Program Files\Internet Explorer\iexplore.exe"

Other factors:

  1. The command only worked for me when I gave the full path to iexplore.exe.

  2. You may run into script execution problems if you save the instruction and run from a .ps1 file. In that case, execute the following from an elevated PowerShell prompt:

    Set-ExecutionPolicy RemoteSigned
    
share|improve this answer
    
Note sure if Start-Process would not be better; again we need the full path: Start-Process "C:\Program Files\Internet Explorer\iexplore.exe" – Guy Thomas Jan 8 '13 at 13:26

The tried and true method in every relevant version of Windows:

iexplore.exe google.com

will open IE and navigate to google. I use invoke-item for some things, but this can be done from the run box (which the OP stated) which saves key strokes. It also works in cmd and powershell, b/c iexplore's path is in the PATH env variable.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .