0x522: A required privilege is not held by the client.
As expected on Win7 ... even as administrator under UAC. And if you use SecPol.msc to give **EVERYONE** the SE_SYSTEMTIME_NAME privilege, admins under UAC still can't do it (whilie others can!). I made a big stink about this in an MS forum, not accepting the proposed "it's impossible to customize the restricted token given to admins under UAC". Dumb! Dumb! Dumb!
So if you're not an admin, you can (as admin) give yourself the privilege with SecPol.msc
As the same user? I would not expect that. By default, only elevated processes can SetSystemTime(). As I said, you can give the privilege to whomever you want with the Security Policy editor ... that works except for unelevated admins (security policy is not applied to the unelevated admin security token). As I said, I think that's really dumb (not being able to customize the unelevated admin token) and will forever look for a way to do it (so any ideas would be appreciated).Hello -- thanks for the info -- what is weird about this is that I get the 522 using tcc, but tccle (x64) it works OK -- go figure
g:\tc12le> time /s time-a.nist.gov 00:00:00 AM System time updated to : Fri Apr 20, 2012 22:44:45 g:\tc12le> time /t 22:44:50
I use it too (in Win7).I use TClockEx under Win XP. The absence of the developer hasn't affected the useability of the application (though I presume that sooner or later, the database will get out of date).
(Replying to David, too). Whoa! Does TclockEx have a time sync'er? ... not mine, v1.4.2.I could not make TClockEx run under Vista as administrator; maybe I did not start it elevated. Good to know it does work under Win7. Windows' Internet Time Server is once daily and does not log adjustment; my clock is a bit erratic so I need more frequent synchronizing and want an adjustment log which automachron provides.
v:\> w32tmparams.btm Default Clock Rate: 156001 High Clock Rate: 156004 High Rate Weight: 118 (/1000) Low Clock Rate: 156003 Low Rate Weight: 882 (/1000) Current Correction: +1.173 sec/day Weight Adjust Delta: 54 (0.030 sec/day) WeightAdjustThreshold: 300000 (0.030 sec/day) 2012-04-19 Thu 03:17:01 Correction: -0.013 s RTT: 63 ms 2012-04-20 Fri 03:17:01 Correction: -0.001 s RTT: 64 ms 2012-04-21 Sat 03:17:01 Correction: +0.019 s RTT: 60 ms
I was confusing TClockEx with another clock application. Sorry. AFAIK, TClockEx doesn't have a database.I use it too (in Win7).
What database, Dave?