Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify the IP Connection Metric for a Network AdapterContent of Modify the IP Connection Metric for a Network Adapter.vbsMD5 Hash: AB471B4E6D0476EFC64B054C1EBE9630 |
||
' Description: 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 | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |