Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 310
Last visit: Tue Jul 20, 2021 8:12 am


Post by sekou2331 »

I want to run Get-NetAdapterHardwareInfo accross multiple machines remotely but it seems like it doesnt have the ablity to do so. I am trying to out find which numa is being used for each network card. Is there anyway script wise to run this over 100 machines?

Code: Select all

Get-NetAdapterHardwareInfo | ?{ $_.Name -match "LAN 1" -or $_.Name -match "LAN 2" } | Select-Object Name, NumaNode | Format-list

  • Name : LAN 1
    NumaNode : 0

    Name : LAN 2
    NumaNode : 1

Posts: 14876
Last visit: Fri Jul 30, 2021 8:16 am
Answers: 12
Has voted: 3 times
Been upvoted: 10 times

Re: Get-NetAdapterHardwareInfo

Post by jvierra »

$s = New-CimSession omega
Get-NetAdapterHardwareInfo -CimSession $s