function Get-HostsFilePath { <# .SYNOPSIS Return the known location of the hosts file. This function is platform aware. #> [CmdletBinding()] [OutputType([string])] param() # if (Test-IsWindowsPlatform) { return "$env:windir\System32\drivers\etc\hosts" # } else { # return "/etc/hosts" # } }