views:

57

answers:

2

I want to open the Internet Explorer as a new Com Object with no Add-ons.

$ie=New-Object -comobject InternetExplorer.Application

How could I start the Internet Explorer without Add-ons?

+2  A: 

It's even easier than that (assuming PowerShell 2.0 for Start-Process cmdlet):

Start-Process iexplore.exe -ArgumentList -extoff

See this page on Internet Explorer command line options.

Keith Hill
A: 

We have PS 2.0 on our machine, but we get this error:

PS H:> Start-Process iexplore.exe -ArgumentList -extoff Start-Process : This command cannot be executed due to the error: Das System kann die angegebene Datei nicht finden. At line:1 char:14 + Start-Process <<<< iexplore.exe -ArgumentList -extoff + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

or

PS H:> Start-Process 'c:\programme\internet explorer\ie.exe' -ArgumentList -extoff Nothing happens, no process starts

LaPhi
The file is called iexplore.exe (not ie.exe). Try this: Start-Process "$env:ProgramFiles\Internet Explorer\iexplore.exe" -ArgumentList -extoff
Shay Levy