How to prevent windows from tracking up time?

Page 2 of 2 FirstFirst 12

  1. Posts : 31,673
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #11

    PolisP said:
    ... I just want to know how to disable the up time, and no, pausing task manager and closing it doesnt stop the up time from being calculated
    There is nothing to turn off as there is no 'hidden process' permanently counting up time. The up time is only calculated on the fly by Task Manager when it is opened, and then only when it updates its view.
      My Computers


  2. Posts : 1,255
    Windows 10 Pro
       #12

    The calculation of up time is very simple. Take the current time and subtract startup time. Any process that wants uptime would do the calculation itself. That is what Task Manager does. The startup time can be obtained in various ways. Where the start time is stored is undocumented but I suspect it is in kernel address space which is inaccessible to normal processes. The kernel would need this information and it would want it in a place not subject to meddling by processes.

    I don't see any practical way to do what you want. You need to rethink the problem and come up with some other solution.
      My Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #13

    You can't disable or get rid of Up time. It's a calculation done whenever you run Task Manager. As @Bree said, it uses the start time stored in the registry when the system boots and a little simple math to generate the number. My Apache web server has the same info available if I want it.
      My Computers


  4. Posts : 55
    Winows 10 Pro 1809
    Thread Starter
       #14

    Ztruker said:
    You can't disable or get rid of Up time. It's a calculation done whenever you run Task Manager. As @Bree said, it uses the start time stored in the registry when the system boots and a little simple math to generate the number. My Apache web server has the same info available if I want it.
    By any chance, do you know exactly where its stored?
      My Computer


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #15

    More investigation did not turn up a location in the registry, just a variety of ways to retrieve the information:

    net statistics workstation | find "Statistics since"
    systeminfo | find "System Boot Time"
    wmic os get lastBootUpTime
    (results in milliseconds)
      My Computers


  6. Posts : 1,255
    Windows 10 Pro
       #16

    As I said previously, I suspect that startup time is stored in Kernel address space. There are multiple ways to access this but they all ultimately get it from the same place. But wherever it is you can be very sure there is no provision for user level code to change it. Allowing this to be modified by the user or an application would be a really bad idea. System uptime is used by the kernel, the performance monitoring system and other Windows components. Some applications use it as well.

    As a matter of interest the startup time is accessible in the registry in a special top level key. Regedit and similar utilities by design will not access it but applications can do so. I don't know the address and I will not take the time to investigate. And it cannot be changed.
      My Computer


 

  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 12:57.
Find Us




Windows 10 Forums