I am using the following, in a batch file, to add a trusted site to the internet options security tab trusted sites area:
powershell -Command "& {set-location 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings';set-location ZoneMap\Domains;new-item 172.20.1.14;set-location 172.20.1.14;new-itemproperty . -Name http -Value 2 -Type DWORD;set-location 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings';set-location ZoneMap\ESCDomains;new-item 172.20.1.14;set-location 172.20.1.14;new-itemproperty . -Name http -Value 2 -Type DWORD;}"
It works as I wanted it to...... It populates the trusted sites window and shows up in the registry correctly..... However, it doesn't really make the site trusted..... If I add by hand, the site is trusted. Am I creating and populating the right keys in the right locations? By hand I do not need https, only http. I must be missing something ???
Many thanks!
Greg