Ying Li at myITforum.com

PowerShell & System Center

Using PowerShell to open multiple Internet Explorers

Ever has a need to open multiple browser at one time and at the mean time “love” PowerShell? Well Looks like PowerShell is going to love you back!

Try save the following script as whatever.ps1 and then in PowerShell console type whatever.ps1 yahoomail yahoofinance hotmail myitforum – that’s normally how I start my day!

$args | foreach-object {

$ie = new-object -comobject "InternetExplorer.Application"

$ie.visible = $true

$ie.navigate("http://www." + $_ + ".com")

}

 

Posted: Aug 14 2007, 04:31 PM by yli628 | with no comments
Filed under:

Comments

No Comments