I have created a batch script which will block Facebook by amending the hosts
file in this location C:\windows\system32\drivers\etc\hosts
This is the contents of the batch file:
@echo off
echo 127.0.0.1 www.facebook.com >> C:\windows\system32\drivers\etc\hosts
exit
I have tested this batch file on my local machine and it works however, it will only work when I run it as Administrator.
Is it possible to deploy this batch file to all computers on my network, running as administrator using Group Policy?
I am using Windows Server 2012.