In a previous tip you learned how to use a shortcut to quickly open the dialog with your network adapters. Today, you get a piece of code to access these network adapters programmatically and list the available NetConnectionIDs:
Get-WmiObject Win32_NetworkAdapter -Filter 'NetConnectionID!=NULL' | Select-Object -ExpandProperty NetConnectionID
This is the very same list you see when you open control panel:
explorer.exe '::{7007ACC7-3202-11D1-AAD2-00805FC1270E}'