How do I add trusted sites to the Internet Explorer configuration on a machine via a script/agent procedure?
The following script will add www.kaseya.com as a trusted site.
Script Name: Add Trusted Sites archersolutions.com
Script Description: This script checks to see if your company has been added as a trusted site. If not it runs a registry script on the machines to allow anything from the domain to run ActiveX. This script adds manage.archersolutions.com
Set Registry Value
Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\www.kaseya.com\http
Parameter 2 : 2
Parameter 3 : REG_DWORD
OS Type : 0
If you have a computer running Enhanced Security Configuration, such as Windows server, you'll need to change the registry key to refer to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains\manage.archersolutions.com\http instead.
(EscDomains instead of Domains)
For the change to be visible to the end user, you should modify the HKEY_CURRENT_USERregistry key rather than HKEY_LOCAL_MACHINE.