Get-NetAdapterHardwareInfo

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.
Locked
User avatar
sekou2331
Posts: 282
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Wed Aug 15, 2012 6:07 am

Get-NetAdapterHardwareInfo

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

output
  • Name : LAN 1
    NumaNode : 0

    Name : LAN 2
    NumaNode : 1

jvierra
Posts: 14447
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Get-NetAdapterHardwareInfo

Post by jvierra »

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

Locked