-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win: fix and improve network data usage reset #265
Fix `Clear (Reset) Network Data Usage` trying to delete other files from Windows system directory. Changes: - Precisely target the deletion of `C:\System32\sru\SRUDB.dat`. - Improve documentation. - Handle explicitly and better if `DPS` service is missing. - Rename script from `Clear (Reset) Network Data Usage` to `Clear System Resource Usage Monitor (SRUM) data` for clearer representation. - Migrate script from batchfile to PowerShell for better maintainability and readability. - Add user-friendly output messages. - Improve script logic to avoid unnecessary service start/stop when the file doesn't exist.
- Loading branch information
1 parent
2147eae
commit 35b9dde
Showing
1 changed file
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters