I just wrote a bat script file which add trusted site for ie. In my bat script, I add a entry to this location:
it does't work, but I can see my site was added in the ie security option panel.
and I also note that, when you add trusted site in ie, a registry entry will be added to :
I don't know why, any one know the right way to add trusted site using bat script ? here is my code:
@Echo off&title gworks set "a=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\" set b=192.168.1.100 reg add "%a%%b%" /v http /t REG_DWORD /d 2 /f >nul 2>nul reg add "%a%%b%" /v https /t REG_DWORD /d 2 /f >nul 2>nul
after I execute it as administrator: