Adding a URL to trusted sites in Internet Explorer with a logon script

Well, this post is probably more directed to those folks that work on a large network with active directory and the ability to make changes on remote systems on a network.

The other day I needed to add a URL to the trusted Sites zone in Internet explorer in a bunch of user computers, and doing it manually would be time consuming and a pain in the butt, so I learn how to add it with a logon script using Kixtart

The Security zones are stored in the registry path [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap]

using kixtart insert the registry keys in this order:

This will prevent overwriting the key if it’s already there.
$chkkey = keyExist(“HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\”);

if $chkkey = 0

$rs=addkey(“HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\”);

$rs=writevalue(“HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\”,”http”,”2″,”REG_DWORD”);

save the file with the kixtart extension (.kix) and put it on the same folder you have the kixtart installation. now open notepad and type the full path to the file you just named above with the .kix extension, for example \\example\kixtart\trustedsites.kix. save as the file with a “bat” extension in the “Netlogon” folder on the domain controller. now you can call the “bat” file using active directory login script.

Another way you can accomplish this is by adding the trusted site on your local computer and then go to the registry and “export” that key and save it as .reg file. You can call the file the same way you called the kixtart file above.

Comments [2]

  1. vimalkumars says:

    Many Phpfox sites have similar functions and can't satisfy all Phpfox owners' requirements. offers you to develop any additional functions, integrate different scripts, and optimize database functions. Our company has also rich experience in integration with various payment and commercial systems and in implementation of different modules and add-ons, Our qualified and experienced team is always here at your disposal.

  2. [...] found this by doing a little research. Hope this helps. Adding a URL to trusted sites in Internet Explorer with a logon script Regards, [...]

Leave a Reply