ps/Modules/Alkami.PowerShell.SDK/Public/Remove-OrbHostEntries.ps1
2023-05-30 22:51:22 -07:00

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
}
}