Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Pull request with type [CREATE] for user [PanuSaukko] and object type [CMPivotQuery] - titled [Count of network adapters] #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Communityhub/CMPivotQuery/Count of network adapters
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SystemDevices
| where (Name contains 'wireless' or Name contains 'GbE' or Name contains 'Ethernet')
// Need to filter out multiple non-network adapter drivers
| where Name !contains 'Manageability' and Name !contains 'Bluetooth' and Name !contains 'PROSet' and Name !contains 'Enumerator'
| where Name !contains 'Button' and Name !contains 'HID' and Name !contains 'iAP'
// Drivername might contain numbers. Need to combine all similar drivernames
| project NetAdapter=case(
Name contains 'Hyper-V Virtual Ethernet', 'Hyper-V Virtual Ethernet Adapter',
Name contains 'VMWare Virtual Ethernet', 'VMWare Virtual Ethernet Adapter',
Name contains 'Realtek USB GbE', 'Realtek USB GbE Family Controller',
Name contains 'Realtek PCIe GbE', 'Realtek PCIe GbE Family Controller',
Name contains 'I219-V', 'Intel Ethernet Connection I219-V',
Name contains 'I219-LM', 'Intel Ethernet Connection I219-LM',
Name)
| summarize count() by NetAdapter
| order by count_ desc