WLAN Manager

WLAN Manager runs as a scheduled task and will automatically disable your WLAN card when a LAN connection is verified. The WLAN card will be re-enabled once the LAN connection is lost. This ensures you'll have the fastest available connection and helps prevent network bridging.

4.4 Star
13,286 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • Problem with OpenVPN
    1 Posts | Last post 12:24 AM
    • How can I leave Wifi on, when connected to openvpn?
  • Get it to work in Windows 10
    1 Posts | Last post October 08, 2019
    • Hi, 
      I am trying to make this to work for Windows 10 but no luck so far.
      We are using Lenovo laptop. Lenovo no longer have the access connection apps for Win10 so I am trying to look at an alternative.
      Is that something you can help?
      Thanks for your time.
  • wifi disables on its own
    1 Posts | Last post September 29, 2019
    • Hello
      can this script be changed in a way to detect a disabled wifi adaptor and re-enable it using system account for all user's profile?
      the issue we have with our laptops is that wifi adaptor disable itself, therefore our remote users have to call our support to help then re-enabling it.
  • Admin Right
    1 Posts | Last post August 23, 2019
    • Hello,
      Does the script require admin rights when executed the first time i.e. when switching from wireless to wired.  I'm asking because I was prompted by UAC to enter admin credentials but this only the first time.
      Best regards,
  • Updates
    2 Posts | Last post April 23, 2019
    • Hi,
      this is great but I propose three changes:
      1. Check for Version >=8 as number not text, currently it will not use the Win8 syntax on Windows 10.
      2. Event triggers instead of startup: event id 27 and 32 from SYSTEM are pretty good indications for network changes and that also means the script doesn't have to run forever, which it will not.
      Doing eventid natively in PS is pretty cumbersome, as there is no eventid-trigger from logs to add.
      3. With the trigger, the loop can be removed.
      I've done all that manually (for system) and so far it works.
    • Roland could you plese provide modified script or short explanation how to do this?
  • Openvpn restart
    1 Posts | Last post October 25, 2018
    • What and where to add the script to after LAN_off+Wlan_On and Wlan_off+LAN_ON was restart the OpenVPN service (OpenVPNService)?
  • Condition causing any issue?
    1 Posts | Last post October 18, 2018
    • The default condition for the task scheduler is to stop the running task after 3 days.  If a user doesn't reboot their machine within three days, doesn't this get in the way of the process working? 
  • Updating for VPN
    1 Posts | Last post October 18, 2018
    • To work with things like VPN (Cisco and Fortinet) and HyperV, update these two lines in the .psm1 file.
      $NetworkConnectionsLAN = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "IPEnabled=TRUE" | Where-Object {($_.Description -notlike "*VirtualBox*") -and ($_.Description -notlike "Hyper-V Virtual*") -and ($_.Description -notlike "Cisco AnyConnect*") -and ($_.Description -notlike "*VPN*") -and ($_.Description -notlike "*VMware*") -and ($_.Description -notlike "*Wireless*") -and ($_.Description -notlike "*WiFi*") -and ($_.Description -notlike "*Wi-Fi*")}
      $NetworkConnectionsWLAN = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "IPEnabled=TRUE" | Where-Object {($_.Description -notlike "*VirtualBox*") -and ($_.Description -notlike "Hyper-V Virtual*") -and ($_.Description -notlike "*VMware*")  -and ($_.Description -notlike "Cisco AnyConnect*") -and ($_.Description -notlike "*VPN*") -and (($_.Description -like "*Wireless*") -or ($_.Description -like "*WiFi*") -or ($_.Description -like "*Wi-Fi*"))}
  • VPN
    1 Posts | Last post August 01, 2018
    • Please help, I don't not where to add this line to exclude VPN:
      -and ($_.Description -notlike "Cisco AnyConnect VPN Client Connection"
      Other than VPN it works great.
  • I cannot seem to install
    1 Posts | Last post July 04, 2018
    • Everything appears fine until
      Get-ScheduledTask : No MSFT_ScheduledTask objects found with property 'TaskName' equal to 'WLAN Manager'.  Verify the
      value of the property and retry.
      At C:\temp\Install-WLANManager-master\PSModule-WLANManager.psm1:411 char:18
      + ...        If ((Get-ScheduledTask -TaskName "$TaskName" -ErrorAction Cont ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : ObjectNotFound: (WLAN Manager:String) [Get-ScheduledTask], CimJobException
          + FullyQualifiedErrorId : CmdletizationQuery_NotFound_TaskName,Get-ScheduledTask
      IT isn't creating the scheduled task and doesn't copy the files either
1 - 10 of 56 Items