Page 5 of 6 FirstFirst ... 3456 LastLast
  1.    10 May 2017 #40
    Join Date : Jun 2015
    Posts : 74
    Win 10 pro

    Quote Originally Posted by Polo6RGTI View Post
    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 ComputerSystem Spec
  2.    10 May 2017 #41
    Join Date : Jul 2015
    South Africa
    Posts : 129
    Windows 10 Pro x64 16299.98

    Quote Originally Posted by pewe View Post
    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 ComputerSystem Spec
  3.    10 May 2017 #42
    Join Date : Jun 2015
    Posts : 74
    Win 10 pro

      My ComputerSystem Spec
  4.    11 May 2017 #43
    Join Date : Jul 2015
    South Africa
    Posts : 129
    Windows 10 Pro x64 16299.98

    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 ComputerSystem Spec
  5.    11 May 2017 #44
    Join Date : Jun 2015
    Posts : 74
    Win 10 pro

      My ComputerSystem Spec
  6.    11 May 2017 #45
    Join Date : Jul 2015
    South Africa
    Posts : 129
    Windows 10 Pro x64 16299.98

    I'm updating the script to include more features.
      My ComputerSystem Spec
  7.    12 May 2017 #46
    Join Date : Jul 2015
    South Africa
    Posts : 129
    Windows 10 Pro x64 16299.98

    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 ComputerSystem Spec
  8.    14 May 2017 #47
    Join Date : Jul 2015
    South Africa
    Posts : 129
    Windows 10 Pro x64 16299.98

    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 ComputerSystem Spec
  9.    21 May 2017 #48
    Join Date : Oct 2013
    Posts : 25,723
    64-bit Windows 10 Pro build 17046
    Thread Starter

    Starting with Windows 10 build 16199, you can now reset network data usage stats from Settings.
      My ComputersSystem Spec
  10.    16 Jun 2017 #49
    Join Date : May 2016
    Posts : 38
    Win10

    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 ComputerSystem Spec

 
Page 5 of 6 FirstFirst ... 3456 LastLast


Similar Threads
Tutorial Category
Solved Resetting Windows 10 Data usage meter
Is there any way to reset the WiFi Data Usage meter each month?
Network and Sharing
Network & Sharing View Network Data Usage Details in Windows 10
How View Network Data Usage Details in Windows 10 This tutorial will show you how to view the Wi-Fi and Ethernet network data usage details of apps from the last 30 days on your Windows 10 PC. Microsoft is making some changes to the Data Usage...
Tutorials
Solved Network Data Usage Doesn't Show
On one of our computers Win 10 home 64 bit, the Network data usage shows "0" while the other 3 (home and pro 32 & 64) all show fine. I only noticed it because the router shows that unit acting as a black hole for data usage even if it sits idle a...
Network and Sharing
Data Usage - How to Reset ?
....... does anybody got an idea how to reset the Data Usage back to 0 ? Any help would be greatly appreciated .......
Network and Sharing
Solved data usage not working on windows 10?
hi, here my problem. i use usb modem huawei on windows 10 x64 pc. just recently i just notice my data usage not showwing anymore, i do dism ..nothing corrupt..sfc..same..basicly windows didnt corrupt.. so..how do i make it work again ..sorry (bad...
Software and Apps
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 19:41.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums