Function: New-TrustedIESite – Add URLs to IE’s Security Zones
Description
This function probably doesn’t have a lot of users to most people. But in Lync, adding the Simple URL for the Lync Server Control Panel to the Local Intranet zone resolves the issue of having to enter credentials each time. Of course, I like to automate the configuration of things, so I whipped up this little function, and it will be included in some of my build scripts. The script basically creates the required registry entries under HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains. Immediately after running the function, we can see the new entry in Internet Explorer
Syntax
New-TrustedIESite [[-url] ] [[-zone] ] []
Zones are as follows:
1 Local Intranet
2 Trusted Sites
3 Internet
4 Restricted Sites
example:
New-TrustedIESite -url https://lyncadmin.contoso.com -zone 1
Will add https://www.lyncadmin.contoso.com to the Local Intranet zone
Download
v1.0 – 02-08-2014 – New-TrustedIESite.v1.0.zip
Follow Me