I'm automating testing a site under different users with windows authentication. I've quickly discovered that internet explorer "Intranet" settings are specific per user.
Is there a way to either:
- Force open a website under "intranet" mode using powershell
Change Internet Explorer settings for all users (so that each time that I open internet explorer with a new user it does not lose my settings).
$username = "domain\user" $password = "password" $secstr = New-Object -TypeName System.Security.SecureString $password.ToCharArray() | ForEach-Object {$secstr.AppendChar($_)}
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $secstr
Start-Process "C:\Program Files\Internet Explorer\iexplore.exe" http://portal.site.local/test -Credential $cred