Avatar of Alan Varga
Alan Varga
Flag for United States of America

asked on 

Use the results of one PowerShell cmdlet to filter another cmdlet

I can get a window of all of the network adapters on my computer if I use
Get-CimInstance Win32_NetworkAdapter | Out-GridView -PassThru

Open in new window

I can get the physical addresses for all of the network adapters using
Ipconfig /All | Select-String Physical

Open in new window

How can I combine these to get the physical address for the adapter selected from the choices in the window?

Avatar of undefined
Last Comment
Alan Varga

8/22/2022 - Mon