windows - Who changes the time? -
i aware of wm_timechange message in win32 api, possible find out application or process changing time?
i have application (windows xp) i'm logging events , time logged events changing unexpectedly.
i have checked: daylight savings adjustment turned off, , automatic syncing internet time server turned off.
is there process in windows os (except dst changes , ntp) set system time?
time changes saved windows event log, specifically, they're saved security log. now, isn't guaranteed work; admins can clear security log, it's way find pid , file name of process called setsystemtime.
this answer talks finding event in system log; however, should able find in security log looking event id 4616. i've added sample record here (with various bits redacted):
<event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <system> <provider name="microsoft-windows-security-auditing" guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" /> <eventid>4616</eventid> <version>1</version> <level>0</level> <task>12288</task> <opcode>0</opcode> <keywords>0x8020000000000000</keywords> <timecreated systemtime="2013-10-07t18:55:08.999738200z" /> <eventrecordid>29419283</eventrecordid> <correlation /> <execution processid="4" threadid="5460" /> <channel>security</channel> <computer>some computer id</computer> <security /> </system> <eventdata> <data name="subjectusersid">s-sid_redacted</data> <data name="subjectusername">username</data> <data name="subjectdomainname">domain</data> <data name="subjectlogonid">0xbaddfood</data> <data name="previoustime">2013-10-07t18:55:08.996254000z</data> <data name="newtime">2013-10-07t18:55:09.000000000z</data> <data name="processid">0xpid</data> <data name="processname">c:\windows\system32\dllhost.exe</data> </eventdata> </event> note process name stored explicitly.
Comments
Post a Comment