Reset Network Data Usage in Windows 10  

Page 5 of 7 FirstFirst ... 34567 LastLast

  1. Posts : 90
    Win 10 pro
       #40

    Polo6RGTI said:
    I have updated the script again. I added a Y/N option and a color change when yes is selected.
    A useful addition to the script for many I think.
    However, I haven't tried this because I use 4G for my broadband, not a landline, and my metered allowance starts on 4th of each month - so I have set up a schedule to run the script at 00:00:01am on the 4th of every month and a pause to accept running the script is not practical.
      My Computer


  2. Posts : 874
    Windows 11 x64 23H2 (22631.4249)
       #41

    pewe said:
    A useful addition to the script for many I think.
    However, I haven't tried this because I use 4G for my broadband, not a landline, and my metered allowance starts on 4th of each month - so I have set up a schedule to run the script at 00:00:01am on the 4th of every month and a pause to accept running the script is not practical.
    I have removed the Y/N option and the pause in the script.
    Code:
    @ECHO OFF
    :: BatchGotAdmin (Run as Admin code starts)
    REM --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
    ) else ( goto gotAdmin )
    :UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    "%temp%\getadmin.vbs"
    exit /B
    :gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    pushd "%CD%"
    CD /D "%~dp0"
    :: BatchGotAdmin (Run as Admin code ends)
    :: Your codes should start from the following line
    COLOR 1F
    ECHO.
    ECHO Commencing with Data Usage Reset:
    ECHO.
    ECHO Stopping Diagnostic Policy Service
    ECHO.
    net stop DPS > NUL 2>&1
    ECHO Resetting Data Usage
    ECHO Y | del /f /q "C:\Windows\System32\sru\*.*" > nul
    ECHO.
    ECHO Restarting Diagnostic Policy Service
    ECHO.
    net start DPS > NUL 2>&1
    ECHO.
    CLS
    ECHO Data Usage was Reset to 0
    exit
      My Computer


  3. Posts : 90
    Win 10 pro
       #42

      My Computer


  4. Posts : 874
    Windows 11 x64 23H2 (22631.4249)
       #43

    I submitted my script yesterday to MajorGeeks.com for review and it was posted today.

    http://www.majorgeeks.com/files/deta...e_scripts.html
      My Computer


  5. Posts : 90
    Win 10 pro
       #44

      My Computer


  6. Posts : 874
    Windows 11 x64 23H2 (22631.4249)
       #45

    I'm updating the script to include more features.
      My Computer


  7. Posts : 874
    Windows 11 x64 23H2 (22631.4249)
       #46

    Windows 10 Data Usage Reset Script 1b


    Download link to the latest update of the script:
    http://www.majorgeeks.com/files/deta...e_scripts.html
      My Computer


  8. Posts : 874
    Windows 11 x64 23H2 (22631.4249)
       #47

    Windows 10 Data Usage Reset Script 1c


    I have now added two extra features to the script. A backup option is now offered before a reset is done. To compliment the backup feature one of the scripts can now be used to do a restore of files from a previous backup. Please note the restore process is semi-auto and requires the user to select and copy the backup files to the restore folder. From there the script will restore the files back to the default system folder.

    http://www.majorgeeks.com/files/deta...e_scripts.html
      My Computer


  9. Posts : 71,030
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #48

    Starting with Windows 10 build 16199, you can now reset network data usage stats from Settings.
      My Computers


  10. Posts : 97
    Win10 Pro, Version 21H2 (Build 19044.1706) (14.06.2022)
       #49

    I don't have such a button like "Reset usage stats" in my Win10 (Creators Update).
    Where exactly can I delete this statistic from "Settings" as Brink wrote?
      My Computers


 

Tutorial Categories

Reset Network Data Usage in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:48.
Find Us




Windows 10 Forums