2

How can one get the Advanced network settings > Data usage statistics in Windows 11 using PowerShell?

enter image description here

I couldn't figure out how to get the total data consumption per process using Get-NetAdapterStatistics.

1 Answers1

2

I'm not aware of a native API that exposes this information, either WMI or Performance Monitor, which is typically what is leveraged by PowerShell. The network usage data is stored in a Microsoft Jet database, located at: C:\Windows\System32\sru\SRUDB.dat. This is functionality included in the System Resource Usage Monitor (SRUM), which is part of the Diagnostic Policy Service.

More information:

https://velociraptor.velocidex.com/digging-into-the-system-resource-usage-monitor-srum-afbadb1a375?gi=86dfb98a4bb6

https://www.ghacks.net/2017/06/28/networkusageview-lists-windows-network-usage-data/

Greg Askew
  • 39,132