Manipulate the entries in the hosts file.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name CPolydorou.HostsFile

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Christos Polydorou


(c) 2017-2022 Christos Polydorou. All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>



Hosts File


Get-HostFileEntry Add-HostFileEntry Remove-HostFileEntry Comment-HostFileEntry UnComment-HostFileEntry


This module has no dependencies.

Release Notes

Ported module to Powershell Core..

Version History

Version Downloads Last updated
2.0.0 (current version) 23 6/20/2022
1.2.2 932 1/28/2022
1.2.1 1,103 7/13/2021
1.2.0 993 7/13/2021