Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I am trying to write a short powershell script so that when i start my computer, internet explorer is opened with several differnt tabs, ex.(google, yahoo, dogpile)

share|improve this question

migrated from Nov 9 '10 at 10:46

This question came from our site for professional and enthusiast programmers.

How is writing PowerShell scripts off topic? How is this not a real question? It's asking for scripting advice and is pretty clear, IMO. – Sam Nov 9 '10 at 4:30
If someone votes to close it, would be good to leave a comment. The question makes sense and is only about writing a script -> belongs here. – stej Nov 9 '10 at 6:01

Tried and worked:

$navOpenInBackgroundTab = 0x1000;
$ie = new-object -com InternetExplorer.Application
$ie.Navigate2("", $navOpenInBackgroundTab);
$ie.Navigate2("", $navOpenInBackgroundTab);
$ie.Navigate2("", $navOpenInBackgroundTab);
$ie.Visible = $true;

Credits go to

share|improve this answer
$ie = new-object -com "InternetExplorer.Application"
share|improve this answer
this only opens 1 tab and when i make the second call to open the second tab it just changes the page to yahoo and doesnt open a second tab. I had made it this far and ran out of ideas. Thanks so much help!! – dylan Nov 9 '10 at 4:42

Add shortcuts for the URLs you want to load to your Startup menu. No need for a script or PowerShell.

share|improve this answer
That would work but I want it all to happen automatically – dylan Nov 9 '10 at 4:38
plus it would open several IE windows not jsut one – dylan Nov 9 '10 at 4:43
@dylan, by default IE is set to "Reuse windows when launching shortcuts" which will force shortcuts to open in new tabs, like you want. Links in the Startup folder will launch automatically when you log in, like you want. – Sam Nov 9 '10 at 5:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.