Skip to main content

Add Sites to Local Intranet

Summary

The script functions by adding the site(s) specified in the Sites parameter to the local intranet zone on the Windows computer.

Image

Sample Run

Input:
Image

Result:
Image

Input:
Image

Result:
Image

Input:
Image

Result:
Image

Input:
Image

Result:
Image

Variables

NameDescription
ProjectNameAdd-LocalIntranetSites
WorkingDirectoryC:/ProgramData/_Automation/Script/Add-LocalIntranetSites
ScriptPathC:/ProgramData/_Automation/Script/Add-LocalIntranetSites/Add-LocalIntranetSites.ps1

User Parameters

NameExampleRequiredDescription
SitesAutomateAutomate,Ram,DevelopmentTrueName of the site(s) to add to the local intranet zone. Multiple sites should be separated by a comma without any spaces between them.
ProtocolhttpsFalseProtocol to include along with the site. The default is HTTP. If this parameter is left blank, the script will automatically add HTTP along with the site.

Output

  • Script Log