15 lines
331 B
PowerShell
15 lines
331 B
PowerShell
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"
|
|
# }
|
|
} |