LAN prioritize over WLAN adapter
Ive trying to find a way to manage this setting centrally, where LAN connection can be prioritized over WLAN connection, giving the user best network performance. Our customers have WLAN access points and cable connections in the same floors, and the target is, when a user plugs in his laptop to dockstation, the active network adapter would switch place from WLAN to LAN. I havent find any group policy settings, because there is no one. Ive seen a vbs script, but it is only supported in XP, and we would like both OS to be managed this setting in the same enviroment.
April 18th, 2012 3:29pm

http://techrena.net/view-change-network-adapter-card-priority-binding-order-windows-7/ Method #2: And now let me introduce you the second alternative method, which is a bit laborious when compared to the first one: 1. Go to the Network Connections window by following the step 1 as detailed in the above step. 2. Right-click on the network connections for which you want to change the priority order and choose Properties. In my case, I wanted to change the interface metric for my wireless network card and hence I will proceed with the changing priority order for Wireless Network Connection under my network connections.
Free Windows Admin Tool Kit Click here and download it now
April 18th, 2012 3:35pm

Bruno, Im looking for automated or centralized method to control this, not manual.
April 18th, 2012 4:44pm

I think this would be the automated way you could set metrics on DHCP when you lease the IP or you can script it with wmi. On the DHCP go to Scope option Advanced tab Vendor class: Microsoft Options User class: Default Routing and Remote Access Class http://msdn.microsoft.com/en-us/library/windows/desktop/aa394217(v=vs.85).aspx IPConnectionMetric Data type: uint32Access type: Read-only Cost of using the configured routes for the IP bound adapter and is the weighted value for those routes in the IP routing table. If there are multiple routes to a destination in the IP routing table, the route with the lowest metric is used. The default value i
Free Windows Admin Tool Kit Click here and download it now
April 18th, 2012 5:01pm

http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/client/configuring/ Modify the IP Connection Metric for a Network Adapter Sets the IP connection metric for a network adapter to 100. Connection metrics can range from 1 to 9,999, with a default value of 1. On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetCards = objWMIService.ExecQuery _ ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objNetCard in colNetCards objNetCard.SetIPConnectionMetric(100) Next
April 18th, 2012 5:05pm

http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/client/configuring/ Modify the IP Connection Metric for a Network Adapter Sets the IP connection metric for a network adapter to 100. Connection metrics can range from 1 to 9,999, with a default value of 1. On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetCards = objWMIService.ExecQuery _ ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objNetCard in colNetCards objNetCard.SetIPConnectionMetric(100) Next I dont quite understand the meaning of this script, where is the division between LAN and WLAN? How this should work?
Free Windows Admin Tool Kit Click here and download it now
April 19th, 2012 2:22pm

You would have to create a filter in the last section of the script. On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetCards = objWMIService.ExecQuery _ ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objNetCard in colNetCards 'setting your filters If objNetCard.Description = "Intel(R) 82579LM Gigabit Network Connection" Then objNetCard.SetIPConnectionMetric(100) ElseIf objNetCard.Description = "Intel(R) Wireless WiFi Link 5100" or objNetCard.Description = "Intel(R) Wireless WiFi Link 4565AG" Then objNetCard.SetIPConnectionMetric(200) End if Next
April 19th, 2012 2:59pm

Thanks. That wont do. I mean, I have several enviroments and several models (with different nic models offcourse) and Im not happy with implementing those models into a script every time new model arrives or maintaning different version of a script in a different customer enviroment because of this. So, I assume there is no easier method to do this?
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2012 5:33am

If script doesn't work for you then DHCP is the only other way that i can think off On the DHCP go to Scope option Advanced tab Vendor class: Microsoft Options User class: Default Routing and Remote Access Class http://msdn.microsoft.com/en-us/library/windows/desktop/aa394217(v=vs.85).aspx IPConnectionMetric Data type: uint32Access type: Read-only Cost of using the configured routes for the IP bound adapter and is the weighted value for those routes in the IP routing table. If there are multiple routes to a destination in the IP routing table, the route with the lowest metric is used. The default value i
April 23rd, 2012 9:53am

If script doesn't work for you then DHCP is the only other way that i can think off On the DHCP go to Scope option Advanced tab Vendor class: Microsoft Options User class: Default Routing and Remote Access Class http://msdn.microsoft.com/en-us/library/windows/desktop/aa394217(v=vs.85).aspx IPConnectionMetric Data type: uint32Access type: Read-only Cost of using the configured routes for the IP bound adapter and is the weighted value for those routes in the IP routing table. If there are multiple routes to a destination in the IP routing table, the route with the lowest metric is used. The default value i
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2012 4:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics