Reset Network Data Usage in Windows 10  

Page 6 of 7 FirstFirst ... 4567 LastLast

  1. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #50

    Hello @WTenNewbie, :)

    Option one in Settings isn't available until build 16199, but you can use Option two now if you like.
      My Computers


  2. Posts : 317
    Windows 10 Home 22H2
       #51

    Hi again, Brink
    Could you make a .bat tutorial file, which will disable wifi network adapter, delete all files in sru folder and reenable the wifi network adapter again. I tried this manually in Creators Update, it works but I am searching for something which can be faster, easier and made by you ;-) By the way, I really like your tutorials, they function 100 procent and I already have a nice collection of those.
    Thanks, man...
      My Computer


  3. Posts : 869
    Windows 11 x64 23H2 (22631.3155)
       #52

    Script to Manually Delete the Data Usage Files


    Here is a batch script I made today to quickly access the "sru" folder to manually delete the Data Usage files.

    Code:
    @echo off
    :: Windows 10 Data Usage Manual Reset Script Ver.1e - Manual Solution to quickly Copy, Cut or Delete the Current Data Usage Files.
    :: Author: Hendrik Vermaak
    
    :: Start Command Prompt Maximised
    if not "%1" == "max" start /MAX cmd /c %0 max & exit/b
    :: Check for  adminstrative permissions 
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" 
    :: 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 "cmd.exe", "/C """"%~f0""""", , "runas", 1 >> "%temp%\getadmin.vbs" 
    cscript "%temp%\getadmin.vbs" 
    exit /B 
    :gotAdmin 
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) 
    pushd "%CD%" 
    CD /D "%~dp0" 
    :: Run as Admin code ends
    :: Main script start
    color 1f
    echo  ======================================================
    echo     Windows 10 Data Usage Manual Reset Script Ver.1e
    echo  ======================================================
    echo.
    echo Stopping Diagnostic Policy Service
    echo.
    net stop DPS > NUL 2>&1
    echo When you press any key to continue the Data Usage System folder "sru" will automatically open for you to manually Copy/Cut/Delete all the current Data Usage files.
    echo The Command Prompt window will remain open in the background.
    echo.
    pause
    start C:\Windows\System32\sru > NUL 2>&1
    echo.
    echo Please press any key to restart the Diagnostic Policy Service and automatically open the Data Usage page to show the result.
    echo.
    pause
    :: Automatically restart the Diagnostic Policy Service
    echo.
    echo Restarting Diagnostic Policy Service
    echo.
    net start DPS > NUL 2>&1
    :: Automatically close the "sru" folder window if still open
    taskkill /f /fi "windowtitle eq sru" /im explorer.exe
    :: Open Data Usage page automatically to show the result and exit Command Prompt
    FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq SystemSettings.exe"') DO IF %%x == %SystemSettings.exe% goto opendatausagepage
    goto closedatausagepage
    :closedatausagepage
    tasklist | find /i "SystemSettings.exe" && taskkill /im SystemSettings.exe /F || echo process "SystemSettings.exe" not running. >NUL
    echo.
    :opendatausagepage
    start ms-settings:datausage
    echo Closing the Command Prompt window in 5 Seconds....
    timeout /t 5 /nobreak >nul 2>&1
    exit
      My Computer


  4. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #53

    Ivan Petrov said:
    Hi again, Brink
    Could you make a .bat tutorial file, which will disable wifi network adapter, delete all files in sru folder and reenable the wifi network adapter again. I tried this manually in Creators Update, it works but I am searching for something which can be faster, easier and made by you ;-) By the way, I really like your tutorials, they function 100 procent and I already have a nice collection of those.
    Thanks, man...
    Hello @Ivan Petrov,

    I have added Option Two in the tutorial for a BAT file option for you. :)

    Reset Network Data Usage in Windows 10 Windows 10 Network Sharing Tutorials
      My Computers


  5. Posts : 869
    Windows 11 x64 23H2 (22631.3155)
       #54

    Windows 10 Data Usage Reset Scripts Ver.2a


    I made an installer script to automatically copy the "Data Usage Reset Scripts" to a folder on the C: drive, create a Start menu folder with shortcuts and add a flyout menu to the right click context menu. An uninstall option is also included.

    Windows 10 Data Usage Reset Scripts Ver.2a:
    DURS_Ver2a.zip

    Any feedback and comments regarding the attached scripts will be appreciated.

    Reset Network Data Usage in Windows 10-screenshot-13-.png
      My Computer


  6. Posts : 869
    Windows 11 x64 23H2 (22631.3155)
       #55

    Windows 10 Data Usage Reset Scripts Ver.2b


    I made a couple of small improvements

    "Changelog: Ver.2b
    1. The "Data Usage Reset Scripts" Uninstall option will now show in the "Control Panel\All Control Panel Items\Programs and Features" and in "Settings->Apps->Apps & Features".
    2. Installer.bat script updated to automatically remove the current installation when reinstalling or when updating the scripts with a new version...."

    Windows 10 Data Usage Reset Scripts Ver.2b:
    DURS_Ver2b.zip
      My Computer


  7. Posts : 869
    Windows 11 x64 23H2 (22631.3155)
       #56

    Update - Windows 10 Data Usage Reset Scripts Ver.3a


    New update available.

    "Changelog: Ver.3a
    1. The Installer and Uninstaller are merged together in the Setup script. It is able to recognize older installations starting with Ver.2a.
    2. The Setup script offers three looped menu's.
    3. A preconfigured backup and reset scheduled task is included as an option. It be can be imported using the Setup.bat script.
    4. The preconfigured scheduled task is set to run automatically on the last day of each month at 23:59:59.
    5. Option added to launch the download page for the user to check if an update is available."


    Windows 10 Data Usage Reset Scripts Ver.3a:
    http://www.majorgeeks.com/files/deta...e_scripts.html

    Any feedback and comments regarding this release will be appreciated. Thanks.
      My Computer


  8. Posts : 869
    Windows 11 x64 23H2 (22631.3155)
       #57

    Update - Windows 10 Data Usage Reset Scripts Ver.3b


    Update:

    "Changelog: Ver.3b
    1. Fixed: Incorrect output message displayed when installing a new version."

    Windows 10 Data Usage Reset Scripts Ver.3b:
    http://www.majorgeeks.com/files/deta...e_scripts.html
      My Computer


  9. Posts : 869
    Windows 11 x64 23H2 (22631.3155)
       #58

    Update - Windows 10 Data Usage Reset Script Ver.3c


    Update:

    "Changelog: Ver.3c
    1. Fixed: Preconfigured scheduled task not importing resulting in an error output message."

    Windows 10 Data Usage Reset Scripts Ver.3c:
    http://www.majorgeeks.com/files/deta...e_scripts.html
      My Computer


  10. Posts : 8
    Windows 10
       #59

    Can anyone here please provide the entire address in Settings to get to "Usage details"?

    I would like to create a shortcut on my desktop to instantly open that window.

    Here is the shortcut address I have so far:

    ms-settings:datausage

    Just need to go one level more, to "View Usage Details."

    Thanks!

    Nicholas Kormanik
      My Computer


 

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 21:00.
Find Us




Windows 10 Forums