hi all,
We have several laptops, I need to make sure none of them will connect to the Local Network and to other network (WiFi, Netstick, Modem, Etc) at the same time.
I thought of a script that:
-will check the status of each network card. (for not enable a disabled card) -will check if the physical (LAN) card is connected. if LAN is connected and some other network cards are connected it will disable the other card. if LAN is disconnected it will enable back the other network card (not the ones that were disabled before the script).
the script will run in hide console, in the background, and will do it's checks every 2 seconds.
i thought to use GetCurrentSSID() and GetIPOptions() but i don't know how to disable or enable the network card.
thanks in advance,
Amir.
|