How to launch a command on network connection/disconnection?
Problem
I have a wifi connection that requires to authenticate using a web form once the wireless link is established. I know how to automate the authentication with a script that uses /curlIE. But how can I ask Windows to call my script every time I connect to a particular network connection? I would be also interested in receiving the name of the wireless profile or the ESSID on the command-line of my script.
Error Output
curl
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to launch a command on network connection/disconnection?
In Windows Vista and later, you can do this using a scheduled task with an event log trigger. The first event will be triggered by connecting to the network, and you will specify which network you must be connected to for it to run. The second event will be triggered when disconnecting from any network. Each event will run a specific task that you specify; likely the scripts you mentioned having written. Setting an event for when you connect to the network: Open the Task Scheduler. You can find…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix