Update hosts file with GPO

Hello. Is there a way I can update hosts files on PCs with Group Policy? I want to be able to easily add and remove entries without replacing the entire file.

Comments

  • 1 Comment sorted by
  • Vote Up0Vote Down
    Answer ✓
    You can certainly use Group Policy Preferences to push out a new file, and overwrite the existing, but I don't know of a way to update an existing file (say to add one new entry).
  • Vote Up0Vote Down
    Thanks for the reply. I'd like to be able to easily add and remove entries, not replace the whole thing.