Edit-EtcHosts

SYNOPSIS

Edit \etc\hosts file with notepad.

SYNTAX

Edit-EtcHosts

DESCRIPTION

This funtion starts notepad.exe as administrator and opens the hosts file for editing. If this function is running on PowerShell Core, it runs “sudo vi /etc/hosts”

run notepad as administrator and open the hosts file for editing

EXAMPLES

Example 1

PS C:\> 

PARAMETERS

INPUTS

OUTPUTS

NOTES