sethosts What is sethosts ? sethosts allows to set the Windows hosts file directly from CLI as JSON payload For example, C:\>sethosts [{\"IP\":\"127.0.0.1\",\"HostName\":\"localhost\"}] will result in the following hosts file 127.0.0.1 localhost