This is my first post here, so apologies if I’ve posted this in an incorrect area, if that’s even a thing here. Could not find a similar question with this exact scenario, so here goes.
I am writing a BadUSB script for use with my Flipper Zero to email me all active IP addresses with adapter names. I have it working, it works great, however I am having a hard time understanding how I need to append the Get-NetIPAddress
command to list InterfaceAlias
followed by IPv4 Addresses ONLY. I can get it to work with one or the other, but I am not familiar enough with this specific command to know where to go from here. No help on the typical powershell user communities.
Currently trying these:
(Get-NetIPAddress | where-object {$_.addressfamily -eq 'ipv4'}).interfacealias
(Get-NetIPAddress | where-object {$_.addressfamily -eq 'ipv4'}).ipaddress
Need a way to combine these two to output both parameters.