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.
This topic is 5 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
sekou2331
Posts: 318
Last visit: Sat Oct 28, 2023 7:46 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: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Get-NetAdapterHardwareInfo

Post by jvierra »

$s = New-CimSession omega
Get-NetAdapterHardwareInfo -CimSession $s
This topic is 5 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked