Answered by:
Add site to Trusted Sites List

Question
-
Is it possible to programmatically add site to Trusted Sites List using javascript?Wednesday, July 8, 2015 4:18 AM
Answers
-
Hi,
use powershell scripts to read/write to the registry. (Win7 and higher).you need elevated priveleges. vbscript is depreciated and your cannot access the registry with javascript.
If you are a web site developer and your visitors require that they add your domain to their trusted sites list, then you are doing something wrong. (unsigned ActiveX dependencies, CORS, XSS). Public access websites should be targeted to the Internet IE Security zone... make sure that you are using the Default IE Security zones in your testing... Internet Options>Security tab, click "Reset all zones to default".
Post questions about html, css and scripting to http://stackoverflow.com. If possible include a link to your website or a mashup with your questions.
For domain connected clients use Group Policy to maintain administrator sanctioned domains and IE Security zones.Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
Regards.
Rob^_^
- Proposed as answer by Kjetil Tonstad Wednesday, July 8, 2015 6:31 AM
- Marked as answer by MeipoXuMicrosoft contingent staff Monday, July 27, 2015 3:07 AM
Wednesday, July 8, 2015 5:30 AM
All replies
-
Yes, via the registry, or group policy. Here's a VBScript example on how to add via the registry. The basic method should translate to JavaScript. http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/14/how-can-i-add-a-web-site-to-the-trusted-sites-zone.aspxWednesday, July 8, 2015 4:26 AM
-
Hi,
use powershell scripts to read/write to the registry. (Win7 and higher).you need elevated priveleges. vbscript is depreciated and your cannot access the registry with javascript.
If you are a web site developer and your visitors require that they add your domain to their trusted sites list, then you are doing something wrong. (unsigned ActiveX dependencies, CORS, XSS). Public access websites should be targeted to the Internet IE Security zone... make sure that you are using the Default IE Security zones in your testing... Internet Options>Security tab, click "Reset all zones to default".
Post questions about html, css and scripting to http://stackoverflow.com. If possible include a link to your website or a mashup with your questions.
For domain connected clients use Group Policy to maintain administrator sanctioned domains and IE Security zones.Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
Regards.
Rob^_^
- Proposed as answer by Kjetil Tonstad Wednesday, July 8, 2015 6:31 AM
- Marked as answer by MeipoXuMicrosoft contingent staff Monday, July 27, 2015 3:07 AM
Wednesday, July 8, 2015 5:30 AM