Autosync on startup
What do you think if we add a small checkbox about autosync with time servers when startup? The command is simply:
W32tm /resync /force
so... /force is still valid in Windows 10? Doesn't seem to be documented.
Well... it seems the use of W32tm requires admin rights, so there's no way T-Clock would add that when there's T-Clock's own inbuilt SNTP (also requiring admin rights) However, besides the SNTP needing a "rewrite", there's the issue about needing administrative permissions... As such it's still part of what I would like to have, but nowhere near any estimate when or how it might happen.
To be able to support this.. T-Clock would have to create a Service so it could elevate, but it would also have to "install" components into a secure location, such as %ProgramFiles% so that it doesn't expose a security risk. It might even need to validate its own executable... So that's quite some work.
Hmm, I thought it's just a simple cmd command? It doesn't even need admin privilege.
On Fri, Apr 12, 2019, 00:22 René Schümann [email protected] wrote:
so... /force is still valid in Windows 10? Doesn't seem to be documented.
Well... it seems the use of W32tm requires admin rights, so there's no way T-Clock would add that when there's T-Clock's own inbuilt SNTP (also requiring admin rights) However, besides the SNTP needing a "rewrite", there's the issue about needing administrative permissions... As such it's still part of what I would like to have, but nowhere near any estimate when or how it might happen.
To be able to support this.. T-Clock would have to create a Service so it could elevate, but it would also have to "install" components into a secure location, such as %ProgramFiles% so that it doesn't expose a security risk. It might even need to validate its own executable... So that's quite some work.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/White-Tiger/T-Clock/issues/172#issuecomment-482214344, or mute the thread https://github.com/notifications/unsubscribe-auth/AGYqXUtUtJaKkA31Y3oknyeY3DhhS4thks5vf29SgaJpZM4cof90 .
It does need admin privileges... the same way everything that tries to change the current date/time does.
Not really sure about this since I don't see it requires me admin privilege, but I find out that it can only sync in a small range of time. If the time gap is large, it reports error.
On Fri, Apr 12, 2019, 23:40 René Schümann [email protected] wrote:
It does need admin privileges... the same way everything that tries to change the current date/time does.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/White-Tiger/T-Clock/issues/172#issuecomment-482642116, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTCUXLOEYJ6D5BLBQFKEM3PQC3O5ANCNFSM4HFB752A .