Add Trusted Sites In IE

Trusted Sites in IE are stored in the Registry Keys under Internet Settings in the Current Version section.

To navigate to Trusted Sites, open IE -> click on the Settings button on top right corner-> click on Internet Options-> Security tab.

We can add Trusted Sites under the Local Intranet section, Trusted Sites section, and Restricted Sites section.

Trusted Sites

To add sites to the Trusted Sites section, we need to add a new path and Key with HTTP value as 2.
  1. New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" -Name "abcd.com"
  2. Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\abcd.com" -Name "http" -Value 2
Local Intranet

To add sites to the Local Intranet Sites section, we need to add a new path and Key with the HTTP value as 1.
  1. New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" -Name "google.com"
  2. Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\google.com" -Name "http" -Value 1
Restricted Sites

To add sites to the Restricted Sites section, we need to add a new path and Key with HTTP value as 4.
  1. New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" -Name "msn.com"
  2. Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\msn.com" -Name "http" -Value 4