Hope someone can help.
I would like to know how to block or unblock (enable/disable) internet access via VB2005.
Here is the scenario- A "server" app where I can enable/disable internet access on "workstations", to stop staff using the net unless i allow them.
I know how to get the "workstation" app to respond to what the "server" app says, but just need the code on the "workstation" end, to actually enable/disable the net from working (ADSL). Is it something to do with sockets or the DNS/Gateway settings And can I change these from a VB app.

Blocking / Unblocking internet access
Tim Day
I'd look up WMI (Windows management Instrumentation) to initiate control processes on other nodes.
Information on WMI can be found here:
MSDN WMI
and here
WMI Reference
Xianfang
If you're only talking about a handful of people then your best approach would be a proxy server and forcing all your clients to use that. The proxy server will then give you the choice of who to allow access to the Internet or not and many of them can integrate with Active Directory.
If you are still wanting to use VB to control the Internet Access then the most direct way would be to interrupt the client's routing table (most specifically remove the 0.0.0.0 0.0.0.0 route) but you will most likely have to make an agent that sits on the workstation for that or as Renee stated you can look at WMI.