To get the network connection type in PowerShell, you can use the Get-NetConnectionProfile cmdlet. This cmdlet retrieves the connection profile for a network interface. It provides information about the network interface, such as the network name, connection type (such as Wi-Fi or Ethernet), and whether the connection is considered a public or private network.