Monday, November 23, 2009

GPO + bat file to edit host files

It is create your host file and deploy it with a startup script which doesn't require that the user has admin rights since it runs on machine account.
Put your host file on a share and create a batch file with this line:

type \\server\sharename\hosts >>%systemroot%\system32\drivers\etc\hosts

Then go in your group policies:
Computer configuration / Windows settings / Scripts / Startup
and use your script. At next startup everyone will have new hosts file.


Print Friendly and PDF

No comments:

Post a Comment