Hello, I am wondering if ther is way how to to add File:/// path using this script.
This script seems to work fine for my local IE. How can I push this out to other IE browsers?I am specifying ./AddingtrustedSites.ps1 -Trustedsites "xxxxxx.org" and this adds the domain to my safe sites list in IE. I want to push this out to other machines. Is there a way I can do this? Very Kind regards Dave
I was hoping to find a way to edit add sites to the trusted sites while still allowing users to add their own. the only way I have figured out so far is with a registry change.
How to add website in the Local intranet security zone using power shell script? Currently we are doing the task using the below steps. To add a website in the Local intranet security zone 1) Open Internet Explorer by clicking the Start button , and then clicking Internet Explorer. 2) Click the Tools button, and then click Internet Options. 3) Click the Security tab, and then click Local intranet. 4) Click Sites. 5) Advanced 6) Add site
Better late than ever - you can grab a copy of this script and change this line: $DWord = 2 To: $DWord = 1 The DWord = 2 signifies that you're specifying the URL as a Trusted site whilst putting in 1 would put it into Local intranet sites.
I'll be cheeky and answer myself here. It appears the script will happily accept IP's as trusted sites but if you add them that way IE get's confused, can't delete them and won't actually apply them to the zone. This is due to IP ranges having to be added under the ZoneMap\Ranges key instead. I created a modified script based on this AddingTrustedSites.ps1 to account for this. You may find it at this gist address: https://gist.gi thubusercontent .com/ddikman/30 178994b4c790786 b8f70142afcce49 /raw/6a18e0ba13 08d8e02aab0e505 c34d064fc4ff249 /AddingTrustedR anges.ps1