How can one get the Advanced network settings > Data usage
statistics in Windows 11 using PowerShell?
I couldn't figure out how to get the total data consumption per process using Get-NetAdapterStatistics
.
How can one get the Advanced network settings > Data usage
statistics in Windows 11 using PowerShell?
I couldn't figure out how to get the total data consumption per process using Get-NetAdapterStatistics
.
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://www.ghacks.net/2017/06/28/networkusageview-lists-windows-network-usage-data/