FAQ FAQ  Forum Search   Register Register  Login Login

Script to find & disable 2nd active net adapter

 Post Reply Post Reply
Author
  Topic Search Topic Search  Topic Options Topic Options
simanta View Drop Down
I'm new here
I'm new here


Joined: 27 Jun 2009
Online Status: Offline
Posts: 2
  Quote simanta Quote  Post ReplyReply bullet Topic: Script to find & disable 2nd active net adapter
    Posted: 27 Jun 2009 at 11:24
Back to Top
jvierra View Drop Down
MVP
MVP


Joined: 31 Aug 2006
Location: United States
Online Status: Offline
Posts: 6846
  Quote jvierra Quote  Post ReplyReply bullet Posted: 27 Jun 2009 at 17:39
There is a Group Policy setting which controls this.  There is a
wireless" policy that will not  allow wireless connections when connected to the corporate network.  This is far more reliable and easier to manage than trying to discover the adapter in a script.


Edited by jvierra - 27 Jun 2009 at 21:16
Back to Top
simanta View Drop Down
I'm new here
I'm new here


Joined: 27 Jun 2009
Online Status: Offline
Posts: 2
  Quote simanta Quote  Post ReplyReply bullet Posted: 27 Jun 2009 at 22:03
Thanks for your reply,  We cannot stop users from using the wireless, as they have to use that when they are in the meeting rooms, and when they back to their desk they are suppose to use wired network. but I could not able to locate any option in GP that meet my requirement. But I could not able to locate any option in GP that meet my requirement. I feel a script will do that job. Please help.
Back to Top
jvierra View Drop Down
MVP
MVP


Joined: 31 Aug 2006
Location: United States
Online Status: Offline
Posts: 6846
  Quote jvierra Quote  Post ReplyReply bullet Posted: 27 Jun 2009 at 22:12
Have you tried settting GPO to disable wireless by location.  When location is desktop LAN connection then disable wireless else enable wireless for other locations.
 
 
If you stil lwant to try it the hard way then use WMI Wn32_NetworkAdapter.  You can enable or disable each adapter that you need to control.
 
 


Edited by jvierra - 27 Jun 2009 at 22:14
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down