netsh interface ipv4 show interfaces getmac wmic nic get macaddress wmic nic where netconnectionid!=NULL get macaddress powershell Get-WmiObject win32_networkadapter