Ask your Windows 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: 271
Joined: Wed Aug 15, 2012 6:07 am


Post by sekou2331 » Tue Jan 15, 2019 2:09 pm

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: 14143
Joined: Tue May 22, 2007 9:57 am

Re: Get-NetAdapterHardwareInfo

Post by jvierra » Tue Jan 15, 2019 3:00 pm

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