I have collected the value of WindowStart from registry
Q: (value “WindowStart” of it as string) of key “HKEY_LOCAL_MACHINE\SOFTWARE\CRQ\Maintenance\Reboot” of native registry
A: 2330
T: 13777
When I tried to subtract 600 seconds from available time 2330, it’s not working ? any idea why ? or how we can do ?
Q: (value “WindowStart” of it as string) of key “HKEY_LOCAL_MACHINE\SOFTWARE\CRQ\Maintenance\Reboot” of native registry as time - 600
E: The operator “minus” is not defined.
Several problems - you are trying to subtract a time from a string, which won’t work.
Even subtracting a time from a date doesn’t work either.
You can just get
boot time of operating system
but if you are on Windows, beware, because Windows only boots when you restart it (a shutdown just puts it into deep sleep and doesn’t reset the boot time)