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.

(Reference: http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_23790188.html)

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment