use case 1 - for sitecore automation module
TRANSCRIPT
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
HOW TO ADD PLENTY IIS BINDINGS & HOSTS ENTRIES IN SECOND
SITECORE SITES
CONFIGURATION
IIS BINDING
SHOSTS FIles
SITECORE AUTOMATION
MODULE
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
Use Case for Sitecore Automation ModuleMigration of 4 servers SIT/CM/2xCD
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
Use Get-SitecoreSites command and extract hostName propertyGet Sitecore Sites
$webPath = 'E:\www\MySite\Website\App_Config\Include\Novo' $hosts = Get-SitecoreSites -Path $webPath | Select-Object -ExpandProperty hostName
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
Add IIS BindingsUse Add-SitecoreBindings to add hosts to IIS
Add-SitecoreBindings -Hosts $hosts -WebSite "Sitecore8"
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
Add Hosts EntriesUse New-SitecoreHostEntry to add entries to hosts file
foreach($hostName in $hosts){ New-SitecoreHostsEntry -IpAddress 127.0.0.1 -HostName $hostName
New-SitecoreHostsEntry -IpAddress 255.255.255.255 -HostName $hostName -Path $devhosts }
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
Powershell ScriptUsing Sitecore-Automation module
@RobsonAutomatorhttps://bitbucket.org/sitecoreautomationteam/sitecore-automation/wiki/Home
More about Sitecore Automation Module