Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2104
  • Last Modified:

Script to add to Trusted Sites

I have a new portal site I am developing.  
For the TSWEB app to work the site needs to be in the users trusted sites.

I am looking for a code example that I could use to have the users select a link and ask confirmation if they realy want to add it to the trusted sites.

Thanks in advance.

0
jkratzer
Asked:
jkratzer
  • 3
  • 2
1 Solution
 
johnb6767Commented:
If this is needed, can you not simply deploy the IE settings via GPO?
0
 
jkratzerAuthor Commented:
This is going to be for remote users to access.  If it were just for the users company  machines that would be an option, but we do not know where the users may try to connect from.
0
 
johnb6767Commented:
Both of these commands work from DOS, which means you can incorporate it into a VBScript based on the syntax of the commands, you can put it into a .reg file or use it in a batch file....

Now, it is a batch file..... Notive the DWORD value, either http or https, indicating whether it requires the checkbox....


@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\YourSite.com\www" /v https /t reg_dword /d 00000002
 
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Interne
t Settings\ZoneMap\Domains\YourSite.com\www" /v http /t reg_dword /d 00000002
 
exit

Open in new window

0
 
johnb6767Commented:
.Registry File.....
Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\yoursite.com\www]
"https"=dword:00000002
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\yoursite.com\www]
"http"=dword:00000002

Open in new window

0
 
jkratzerAuthor Commented:
I actualy just created a vb script that I have called from a link.  I was hoping for something a little cleaner, but this works.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now