Disconnect Wireless Networking


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Disconnect Wireless Networking

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    1

    Disconnect Wireless Networking

    Hi

    This is very important that i know this...

    I have created a vbscript that detects the NIC's IP Address and if the IP address is withing the conditions - it stops the following services:

    Smart Card Service
    Wireless Zone Configuration Service

    Under the group policy set - user's cannot start services - so they cannot connect into a wireless network.

    PROBLEM: When the user logs into the network with a network cable its fine, my script works.

    But...

    If they take out the network cable, and re-insert it? what happens - it assigns a DHCP address -

    or if they log on locally - then they insert the network cable - it picks up an IP and wireless is available...

    ** I want to know either the following...

    what triggers or whats the event that occurs when a network cable is inserted? how can i stop this? how can i possible trigger a VBScript to run when a network cable is inserted? is this possible? i know that there are apps for this (i.e. IPSwicther), but i want to avoid 3rd party apps...

    I want to know whether it is possible to run my script when the network cable is inserted or removed?
    Can anyone help???

    Im very desperate!!!

  2. #2
    Join Date
    Nov 2003
    Posts
    4,118
    I think it would be better to disable these services altogether, say by modifying the regsitry keys or running a script that does that. It looks like yoru script stops them, but doesn't disable them so the next time they're "needed" Windows launches them again.
    Danny Kalev

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center