Windows change network location CLI
Win10
Start 'powershell'
Get-NetConnectionProfile
Name : Network InterfaceAlias : wan InterfaceIndex : 15 NetworkCategory : Public IPv4Connectivity : Internet IPv6Connectivity : NoTraffic
Set-NetConnectionProfile -Name "Network" -NetworkCategory Private
* 要 admin 權限執行它
Win7
control.exe /name Microsoft.NetworkAndSharingCenter
Network Binding Order
Server08:
Start -> Network -> Network and Sharing Center -> Change Adapter Settings
按 Alt 鍵 -> Advanced -> Advanced Settings
用圖:
warning is raised stating that the Network Binding Order is incorrect for the environment.
CLI
常用功能:
- Get NIC IP
- GET NIC Index