edit this page

Show-EtcHosts

SYNOPSIS

Display /etc/hosts file content on Windows or Linux/macOS.

SYNTAX

Show-EtcHosts [<CommonParameters>]

DESCRIPTION

This funtion gets the content of the hosts file, parses the lines and outputs a custom object with HostName and IPAddress properties.

EXAMPLES

Example 1

PS C:\> 

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES