Here's an example of how to detect changes in network availability.
Use "netsh interface set interface "Local Area Connection" DISABLE" to disable the internet until the user provides you with the desired information.
This is just a small part of what you'll need to make this work, but it's what you asked for.
- Pete