How can I easily disable (and later re-enable) internet access on Windows 7 via the command line (for an anti-procrastination script)? It would work fine if rebooting re-enables internet access. No local network access is required.
For me (win 7) these commands only work if I deleted the space before the second ".
netsh interface set interface "Local Area Connection" ENABLE netsh interface set interface "Local Area Connection" DISABLE
I'm wondering if there is a command that can cut off all external connections but leave the wan and lan OK.