Hosts File Modification Solution
Purpose
The purpose of this solution is to provide a quick and easy way to modify the Windows host file, either by adding values, gathering information, or resetting the host file to its defaults.
Associated Content
Content | Type | Function |
---|---|---|
EPM - Windows Configuration - Script - Hosts File - Audit | Script | This script gathers information on the contents of the Windows host file and outputs them to the Host File Contents EDF. |
EPM - Windows Configuration - Script - Hosts File - Add | Script | This script takes user parameters set when running the script and adds a host file entry to the machine's host file, then runs ipconfig /flushdns . |
EPM - Windows Configuration - Script - Hosts File - Reset | Script | This script resets the host file to defaults, removing any and all customizations, and then runs ipconfig /flushdns . |
CWM - Automate - Dataview - Hosts File - Audit [Script] | Dataview | It shows the uncommented content of the host file in a single place. |
Implementation
- Import the following scripts:
- Import the Dataview CWM - Automate - Dataview - Hosts File - Audit [Script]
- Schedule the script EPM - Windows Configuration - Script - Hosts File - Audit to run against the desired computers at regular intervals to keep the dataview up to date.