Welcome to Our WirelessAdvisor Community!

You are viewing our forums as a GUEST. Please join us so you can post and view all the pictures.
Registration is easy, fast and FREE!

Wireless Supression

Discussion in 'GENERAL Wireless Discussion' started by nickjoc, Aug 31, 2007.

  1. nickjoc

    nickjoc New Member

    Joined:
    Aug 31, 2007
    Messages:
    2
    Likes Received:
    0
    Does anyone know of a way to suppress the wireless card when a wired connection is enabled?

    I know there are 3rd party products that do this, but I am looking for a way to manipulate windows via GPO or registry setting to do this.

    The issue is we do not want users connected via wired connection to the trusted network, and able to jump on the guest access at the same time, thereby circumventing the firewall.
     
  2. Rasputin

    Rasputin Bronze Senior Member
    Senior Member

    Joined:
    Aug 9, 2002
    Messages:
    1,028
    Likes Received:
    0
    My Phone:
    Apple Iphone
    Wireless Provider(s):
    ATT, Verizon
    ON some wireless cards like Dell which is a broadcom chipset you do select

    "Disable Upon Wired Connect" property for the card via Device Manager-->Network Adapters-->Dell TrueMobile-->Properties-->Advanced tab

    or here is a work in progress VBScript I found at Experts Exchange in 2005.

    Const HKEY_LOCAL_MACHINE = &H80000002

    Public WShell

    strComputer = "."

    Set WShell = Wscript.CreateObject("Wscript.Shell")
    Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")

    strKeyPath = "SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}"
    oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

    For Each subkey In arrSubKeys
    If subkey <> "Descriptions" Then
    Wscript.Echo strKeyPath & "\" & subkey & "\" & "Connection"
    strValueName = "MediaSubType"
    oReg.GetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath & "\" & subkey & "\" & "Connection" ,strValueName,dwvalue

    strValueName = "Name"
    oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath & "\" & subkey & "\" & "Connection" ,strValueName,strValue
    Wscript.Echo "Card: " & strValue

    If dwvalue = 2 Then
    strValueName = "Name"
    oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath & "\" & subkey & "\" & "Connection" ,strValueName,strValue
    Wscript.Echo "This is a wireless card will be disabled: " & strValue

    strValueName = "PnpInstanceID"
    oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath & "\" & subkey & "\" & "Connection" ,strValueName,strValue
    wShell.Run "devcon disable ""@" & strValue & """" ,2,true
    End If
    End If
    Next

    The finished product will be at Welcome to Petri.co.il by Daniel Petri
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Jay2TheRescue

    Jay2TheRescue Resident Spamslayer
    Super Moderator Senior Member

    Joined:
    Dec 17, 2002
    Messages:
    12,405
    Cell Tower Picture Gallery:
    158
    Likes Received:
    438
    Location:
    Northern Virginia
    My Phone:
    Pixel 4a 5G
    Wireless Provider(s):
    AT&Tingular 310-410
    Couldn't you simply create a second device profile, and disable the wireles card in the second profile? That way you can switch back and forth easily.

    -Jay
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. nickjoc

    nickjoc New Member

    Joined:
    Aug 31, 2007
    Messages:
    2
    Likes Received:
    0
    Jay,
    I could do that, but trying to automate the process for users. Also, that would require a reboot.

    Basically want to prevent users from being on the trusted LAN (wired) and guest network (wireless) at the same time.

    Thanks
     

Share This Page

Copyright 1997-2023 Wireless Advisor™, LLC. All rights reserved. All registered and unregistered trademarks are the property of their respective holders.
WirelessAdvisor.com is not associated by ownership or membership with any cellular, PCS or wireless service provider companies and is not meant to be an endorsement of any company or service. Some links on these pages may be paid advertising or paid affiliate programs.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice