GPO for adding site to Trusted Sites Zone in Internet Explorer

 Hello, 


Today even when almost nobody uses Internet Explorer, there is someone who is still using it... yes, and you know who is it... Its Your Operating system!! Windows 10 and many applicatinos still uses Internet Explorer for managing security and other settings.

I need to add some sites to the Trusted Zone, for an internal project, so in your Enterprise environment the most easy way to doing it is using GPO, but be careful. There are many ways of doing it, and even you can overwritte the complete zone list, or wipe it.

I like this method because it only add sites, it doesn't delete anything and even allow your users still modify the zone. It's fine for some environments.



As I always recommend, please Create a new GPO for each kind of setting you are modifying. Please do not add your settings into the defaults GPO, or a previous one. The best practice is always managing different GPOs for differnent settings. In this case, You should name this one as "Trusted zone Sites"

Navigate to User Configuration\Preferences\Windows Settings\Registry

Yes... we are going to use the registry to add some sites to the Trust Zone.


Create a new registry Item as "Update"
Hive is Current User and for Key Path use the following:

SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\example.com\mydearwebsite\

Please pay attention to the marked text. Here you should write your site. In this example, I am adding the site https://mydearwebsite.example.com to the zone. As you see, the order is inverted.

In value name put https or http, depending on your site.

The base kind is "Decimal", Value type is REG_DWORD and Value Data it's 2 for Trusted Zone.




After adding, if you need to add more sites, just Copy-Paste the Registry setting, and just change the Key Path for each one.

For checking results, wait fot the GPO to be applied in your environment, or just execute in a test machine the "gpupdate /force" command.


Just check on your Internet Explorer, and you will find the new site in the list of trusted sites.

You can use this same method for adding sites in different zones.

Just change the Value Data form 2, to other values, in this table:

Value  Setting

------------------------------

0      My Computer

1      Local Intranet Zone

2      Trusted sites Zone

3      Internet Zone

4      Restricted Sites Zon

Microsoft Official Reference:

IE security zones registry entries for advanced users - Browsers | Microsoft Docs

Have a nice Day/night


Comments

Popular posts from this blog

Update DNS static servers in your local Network

Error 'General access denied error' (0x80070005). Starting SCVMM Resource

Powershell Scritp for Inventory VMS in Hyper-V and VMware