A bit too late, but I'm investigating the same thing.
On Vista you could try this:
Neil Cowburn - HOW-TO: Disable/Enable Network Connections Programmatically under Vista
You will need the .Net Framework SDK tools, like (there is a link to 3.5 SDK as well):
I'm still looking for a solution for both XP and Vista.
HTH,
Dan