I want to open a single URL with IE, CH and FF, using incognito/private mode.
I can open the url with the 3 browsers using this Powershell script:
Param(
[string] $url
)
[System.Diagnostics.Process]::Start("chrome.exe", $url)
[System.Diagnostics.Process]::Start("firefox.exe",$url )
$IE=new-object -com internetexplorer.application
$IE.navigate2($url)
$IE.visible=$true
how can I open the browsers in incognito mode?
chrome.exetakes an--incognitocommand line option:Similarly,
firefox.exetakes a-private-windowcommand line option:And as noted by @TToni in the comments, for
iexplore.exethe equivalent is-private:The
InternetExplorer.Applicationcom object doesn't support InPrivate browsing AFAIK