From aa249573cf5eddfdd1286953bd1eb8c878fef13a Mon Sep 17 00:00:00 2001 From: Panu Saukko <25768171+PanuSaukko@users.noreply.github.com> Date: Fri, 4 Nov 2022 11:27:34 +0200 Subject: [PATCH] Automated commit --- .../CMPivotQuery/Count of network adapters | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Communityhub/CMPivotQuery/Count of network adapters diff --git a/Communityhub/CMPivotQuery/Count of network adapters b/Communityhub/CMPivotQuery/Count of network adapters new file mode 100644 index 0000000..ee2f144 --- /dev/null +++ b/Communityhub/CMPivotQuery/Count of network adapters @@ -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 + \ No newline at end of file