18
3
Is there a way to enable/disable a wireless network interface via the command line (so I can put it in a bat file)?
When I'm in the office I use a wired connection, but Windows still occasionally bugs me about my wireless connection not being connected (even though I turned off the option for notifying me when there's no connectivity). I'm guessing the only way to stop it from bugging me is to disable the interface, but I'd rather not have to go into the network settings every time I need to do so.
I'd like to set up a bat file or a shortcut that I can use to enable/disable the wireless (preferably a single one that toggles the current state), and then just set up a keyboard shortcut for that. I just have no idea how to do so from the command line.
This only addresses enabling/disabling at the device driver level not the turn on/off of the device itself. I do not want the enable/disable, but the turn on/off. In particular my WiFi defaults off, but when I come to certain customer sites, to do service work, I need a .bat or .wsh script file that turns on the WiFi and connects to the correct profile for that customer and I want to additionally write it to link in the network printers, so I can print my reports, etc. – None – 2011-03-02T20:18:31.663
@KronoS: Go ahead and just flag for moderator attention on any "answer" that needs to be a comment in the future. We have a convert tool to do it properly. Thanks. – Troggy – 2011-03-02T20:21:41.723
@OldManRiver: That sounds like you have an additional question. I would search Super User to see if you can find something that answers question and if not, go ahead and ask a new question. – Troggy – 2011-03-02T20:25:18.833
@Troggy I was following these instruction as per @IvoFlipse. Will stop future "conversion" however. :)
– James Mertz – 2011-03-02T20:25:50.613@KronoS: Thanks for the reference. If it is an "answer" that needs to be part of the OP question, then go ahead and edit the question and add the "answer" portion to it, then flag the "answer" for deletion. For "answers" that need to become comments, go ahead and just flag those ones. We appreciate the help, but this way we can keep all content associated to the correct users. – Troggy – 2011-03-02T20:30:00.547
@Troggy will follow those guidelines from now on. Thanks for lettin me know. – James Mertz – 2011-03-02T20:36:42.397