Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using log-me-in Central to look after a few dozen computers. These computers are used both for home use and work use. When the computers are used for work, they should not be connected via wireless.

In the best case, I'd like to be able to use LogMeIn to prevents users on shift from connecting wirelessly.

Still acceptable would be to have the computer email me if it connects wirelessly.

If I knew how to set up a script that checks to see if the computer connected wirelessly and I could send an email, then I would be set.

UPDATE: Thanks for the responses. To answer the questions: the computers can be laptops or desktops, and they will be running some flavor of Windows (XP and up). Even if a different solution must be implemented for XP, Vista and Windows - that's OK. If information can be provided on any particular solution, fantastic! In terms of language, I'm looking for a solution that ideally doesn't require another install on the end user computers (e.g. .NET can't be guranteed to be on all computers), but if an install must be done, it must be done. The pain is worth it if I can solve the problem.

share|improve this question
What language[? – Leandro Tupone Jun 6 '12 at 1:00
Take the WLAN cards out of the laptops (assuming these are laptops). – LawrenceC Jun 6 '12 at 3:13

What language do you want for this?

You can use the "devcon" utility for Windows 5 (XP) or you can use wmic for Windows 6 (Vista/Seven)

You can use .NET 2.0 and above, with the class NetworkInterface, or you can parse the output of a commandline like:

ipconfig /all


netstat -rs

Please edit your question and I will edit my answer accord to do you want to use.

share|improve this answer

It really depends on language you want to write your program but BATCH scripts run on all windows systems.(You wanted windows?)

You can simply write a BATCH file that ping and check the response using error level concept.

If the system is connected to INTERNET it will return reply.

now do what you like. (In linux it is much easier)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .