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

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