When you are connected both to a LAN and a WLAN, and would like to prefer one network over the other, you can adjust the network metric. The lower the metric, the higher the network adapter preference.
To list the current preferences, use Get-NetIPInterface. To set the metric to 10 for all WLAN adapters, for example, use a line like this:
Get-NetIPInterface -InterfaceAlias WLAN |