Link to home
Start Free TrialLog in
Avatar of jcdesign4u
jcdesign4u

asked on

disable/enable wireless lan with a dos command

Is it possible to disable the wireless lan of a notebook with a dos command?

We have dell laptops here and want to make a batch file to automate disabling/enabling the Wlan.
Normally you switch this with Fn-F2.
ASKER CERTIFIED SOLUTION
Avatar of Bone99
Bone99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It depends on the service/app you're using to manage the wireless card.  If it's using a service to manage it you can use the net stop command to stop the service.

- gurutc
Avatar of jcdesign4u
jcdesign4u

ASKER

i just use windows to manage the wireless card
the OS is winxp with sp2?

I've already tried Devcon, it's works fine.
But isn't there a standard command to do this without using a extra program?
You can use

"netsh interface set interface (nameofInterface) DISABLED"

to disable and

"netsh interface set interface (nameofInterface) ENABLED"

to enable

The "netsh" command did not work with my internal lancard. Don't know why.

I found a website which describes the problem for developers for Windows XP.
There is a working example, if you need a compilation to use with the command line the please let me know.

http://www.gershnik.com/faq/manage.asp#enable
Hi again,

Channel 9 on the Microsoft Developer Network has a utility called 'togglenic'

It runs from the command line and can be put in batch and login scripts.  

You configure it to enable or disable specific connections by their id in the registry.

I tried it, it works, go here:

http://channel9.msdn.com/ShowPost.aspx?PostID=158556

Regards,
- gurutc
Thanks for the info guys.
I'm using devcon now. It are just a few files which i have to copy to the notebooks