How can I disable internet access on Windows 7 via the command line?
Try netsh:
netsh interface set interface "Local Area Connection " ENABLE
netsh interface set interface "Local Area Connection " DISABLE
You can also, disable the internet connection just by releasing the assigned IP address.
From the elevated command prompt (Run as administrator), type:
ipconfig/release
When you want to enable the internet connection then:
ipconfig/renew
Hope this helps