PowerShell script to get network card speed of a Windows Computer

Question:

What is the PowerShell script to get the speed a specific Windows machine’s network card is running at?

I know this can be done with a WMI query based statement and will post an answer once I work it out.

Answer:

A basic command is

Note that the ComputerName parameter takes an array so you can run this against multiple computers provided you have rights. Replace the Format-Table property list with ***** to get a more comprehensive list of available properties. You might want to filter on these properties to get rid of entries you aren’t interested in.

Using the built in byte Multiplier suffixes (MB, GB etc) would also make the speed more readable depending on your needs. You could specify this as a HashTable entry on the Format-Table -Property array e.g.

Source:

PowerShell script to get network card speed of a Windows Computer by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply