查看 PS C:\Windows\system32> netsh wlan show profiles
Profiles on interface Wi-Fi:
Group policy profiles (read only)
weqw
User profiles
All User Profile : ChinaNGB-YdUPSc
PS C:\Windows\system32>
Get-NetIPInterface
PS C:\Windows\system32> Get-NetIPInterface
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore 18 vEthernet (Virtual Switch (a... IPv4 1500 25 Enabled Connected ActiveStore 11 Ethernet 3 IPv4 1400 5 Enabled Disconnected ActiveStore 10 Ethernet 2 IPv4 1350 25 Enabled Disconnected ActiveStore 14 Bluetooth Network Connection IPv4 1500 65 Enabled Disconnected ActiveStore 16 Local Area Connection* 1 IPv4 1500 25 Enabled Disconnected ActiveStore 6 Wi-Fi IPv4 1500 25 Enabled Disconnected ActiveStore 1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore
Set-NetIPInterface -InterfaceIndex 21 -InterfaceMetric 10