Change Network Priority via PowerShell

Author: Maya    Posted: 6 June 2020   Viewed: 651 times   Tag: #Windows 10 

1. Open Start.

2. Search for Windows PowerShell, right-click the top result a select Run as administrator.

3. Type the following command to identify the current interface metric and interface index number :

Get-NetIPInterface


4. Type the following command to change the priority order:

Set-NetIPInterface -InterfaceIndex 21 -InterfaceMetric 5



Make sure to change the -InterfaceIndex value to reflect the network adapter you want to prioritize and change the -InterfaceMetric value to assign a priority. Also, remember that a lower metric number means higher priority, and a higher metric number means lower priority.

5. Type the following command to see the new metric applied to the network adapter:

Get-NetIPInterface


Note: to reset use the following command:

Set-NetIPInterface -InterfaceIndex 21 -AutomaticMetric enabled


Your Kind Action