22 lines
574 B
PowerShell
22 lines
574 B
PowerShell
|
function Add-OrbHostEntries {
|
||
|
<#
|
||
|
.SYNOPSIS
|
||
|
Adds all the known ORB entries to the hosts file
|
||
|
|
||
|
.LINK
|
||
|
Get-KnownDeveloperHostsEntries
|
||
|
#>
|
||
|
[CmdletBinding()]
|
||
|
[OutputType([string])]
|
||
|
param()
|
||
|
|
||
|
$logLead = Get-LogLeadName
|
||
|
|
||
|
$knownHostEntries = (Get-KnownDeveloperHostsEntries)
|
||
|
$existingRecords = Get-Host
|
||
|
foreach ($entry in $knownHostEntries) {
|
||
|
Write-Host "$logLead : Adding hosts file with IpAddress $($entry.IpAddress) and Hostname $($entry.Hostname)"
|
||
|
Add-HostsFileEntry -IpAddress $entry.IpAddress -Hostname $entry.Hostname
|
||
|
}
|
||
|
}
|