21 lines
559 B
PowerShell
21 lines
559 B
PowerShell
function Remove-OrbHostEntries {
|
|
<#
|
|
.SYNOPSIS
|
|
Removes all the known ORB entries from the hosts file
|
|
|
|
.LINK
|
|
Get-KnownDeveloperHostsEntries
|
|
#>
|
|
[CmdletBinding()]
|
|
[OutputType([void])]
|
|
param()
|
|
|
|
$logLead = Get-LogLeadName
|
|
|
|
$knownHostEntries = (Get-KnownDeveloperHostsEntries)
|
|
foreach ($entry in $knownHostEntries) {
|
|
Write-Host "$logLead : Removing hosts file entry with IpAddress $($entry.IpAddress) and Hostname $($entry.Hostname)"
|
|
Remove-HostsFileEntry -IpAddress $entry.IpAddress -Hostname $entry.Hostname
|
|
}
|
|
}
|