Windows 10: W10 changes timestamps on executables after running them. Normal?

Discus and support W10 changes timestamps on executables after running them. Normal? in Windows 10 Support to solve the problem; Hello. I don't know where to post this. It's getting me crazy. Running w10 x64 and quite satisfied with it. I usually do a "synchronize folders"... Discussion in 'Windows 10 Support' started by eLPuSHeR, Sep 30, 2015.

  1. eLPuSHeR Win User

    W10 changes timestamps on executables after running them. Normal?


    Hello.

    I don't know where to post this. It's getting me crazy. Running w10 x64 and quite satisfied with it.

    I usually do a "synchronize folders" within Total Commander for doing a differential copy of regular applications I download and use. Anyway, I have found out that TC insists on some files being "different" or "changed" after I have ran them. I have found out w10 "automagically sets" current date and time to the executable file after it has been run. Is this normal? Or is it Windows Defender who does it?

    A little annoying in my opinion. Ideas?

    :)
     
    eLPuSHeR, Sep 30, 2015
    #1
  2. magpiemy Win User

    Does Nokia N9 work with Ovi Sync?

    Hi. In my case, it's working only once, that is a day after I bought this phone (after checking timestamp at Ovi Contacts website). Clicking "sync" to execute the process manually doesn't work. Any suggestions?
     
    magpiemy, Sep 30, 2015
    #2
  3. btriffles Win User
    Windows 10 BUG - NEEDS FIXING NOW!!!

    Since there appears to be some confusion about this bug, I will fully explain the problem and how Microsoft can solve it.

    The Problem and Its Cause

    The root of the problem is alternate data streams (ADSs) in the NTFS file system, which store hidden data about a file. When you download a file from the Internet, a special ADS of that file is set ("Zone.Indentifier")
    to indicate that the file came from the Internet. This allows Windows to detect when you try to open a file from the Internet and display a warning.

    To allow you to freely open the file, the Zone.Indentifier ADS can be modified or removed. Removing an ADS does not appear to cause any change in a file's modification timestamp. However, modifying or adding an ADS causes the main file modification timestamp
    to be updated. (I consider this to be a poor design decision of NTFS because the actual file content did not change, only a data stream that is never presented to the user and changed without the user's knowledge.)

    Windows changes the Zone.Indentifier ADS of a file whenever you:

    A. Explicitly choose to "unblock" a file from the file's Properties window

    B. Run an executable file

    Prior to Windows 10, Windows would eliminate the Zone.Indentifier ADS by simply removing the ADS. This does not cause a change in the timestamp.

    In Windows 10, Windows now modifies the Zone.Indentifier ADS rather than simply removing it. Since modifications to an ADS change the main file's modification timestamp, this causes the file's timestamp to change to the current time. Thus,
    Windows is incorrectly changing the modification timestamp of the file even though neither the user nor the system made any changes to the user-accessible file content.

    Related Bugs

    The modification of ADSs causes the incorrect modification of file timestamps for various operations. Here are the ones that I have noticed:

    1. Explicitly choose to "unblock" a file from the file's Properties window

    2. Run an executable file

    3. Extract a ZIP file with Explorer that has a Zone.Indentifier ADS indicating it was downloaded (the extracted files will all be set to the current time) [reference]

    4. Allow Windows Search to index an EML or NWS file for the first time [reference]

    How to Reproduce

    1. Download an executable file using Internet Explorer from a standard Internet site (not in a trusted "security zone"). (This will probably work for all other browsers.)

    2. Go to the file's Properties window and note the "Modified" time.

    3. Wait at least a minute for the system time to change.

    4. Run the executable file, or choose to unblock it from the Properties window.

    5. Reopen the file's Properties window and note that the "Modified" time has been changed.

    You can also find instructions to reproduce the related bugs for
    ZIP files
    and
    EML/NWS files
    .

    How Microsoft Can Fix This

    I can think of several solutions that Microsoft can implement with varying levels of difficulty:

    1. [Easiest Fix] Before modifying/adding an ADS, have Explorer save the file's current modification timestamp (GetFileTime). Then restore the original timestamp (SetFileTime) after the operation is complete.

    2. [Partial Fix] Remove the Zone.Indentifier ADS (as in Windows 7-8.1) instead of modifying it (as in current Windows 10). Note that this will not fix the related timestamp bugs for ZIP files and EML/NWS files.

    3. [Hardest Fix] Alter the NTFS API so that modifying/adding an ADS does not change the main file modification timestamp. This would fix the root of the problem, but it has compatibility implications.
     
    btriffles, Sep 30, 2015
    #3
  4. W10 changes timestamps on executables after running them. Normal?

    Generally the only time you should see the time stamp change for any file would be when editing it like resaving an archive once files are added or when copying files around. The copy will see the new time stamp automatic at the time it is created during the copy process. Apparently 10 is resaving the files it opens up as it goes along.

    Normal? Not that I know of? Useful at all? Could be for troubleshooting purposes at some point to which files were accessed when. That wouldn't anything dealing with WDefender however since that simply detects malwares and doesn't have any other control but to quaranteen or delete not change properties. Upgrade to 10 type of install I presume! Upgrades can be "buggy" in various ways!
     
    Night Hawk, Sep 30, 2015
    #4
  5. eLPuSHeR Win User
    Hello. Thank you for your reply. This is a clean w10 installation from scratch. I even bought a license for it.

    It's not a big deal but it's puzzling me.
     
    eLPuSHeR, Sep 30, 2015
    #5
  6. Typically .exe files creation dates only changes after they are compiled. That's the only way you can re-write an exe file.
     
    orlbuckeye, Sep 30, 2015
    #6
  7. eLPuSHeR Win User
    I am talking about date/time shown on File Explorer. Maybe that's different than compiled date. When binary comparing the two pair (altered and not altered) they are byte identical though.
     
    eLPuSHeR, Oct 1, 2015
    #7
  8. PJLLB Win User

    W10 changes timestamps on executables after running them. Normal?

    I just checked several exe files that have been used today and the date/time is the original prior dates, not today. Could it be that Total Commander is doing something to them? Does is monitor the files in real-time somehow? If so, I would disable the process and see if that changes what you're seeing.
     
    PJLLB, Oct 1, 2015
    #8
  9. Berton Win User
    I use both Total Commander and PowerDesk [on different computers] and both do have a function to change the Attributes of files, one of which is the date and time, but both programs need to have that function manually selected to accomplish the task.
     
    Berton, Oct 1, 2015
    #9
  10. The mention of you syncing files, folders seems to be the most likely reason. If the sync is online you are likely seeing the files refreshed each time you log into the game servers if no other local files are seeing this as well. The game apparently downloads temp files used during game play which are then replaced with each new gaming session. That would explain why you are seeing this type of time stamp alteration.
     
    Night Hawk, Oct 1, 2015
    #10
  11. eLPuSHeR Win User
    The sync is offline between a folder in my hd and an usb device. And it isn't games. It's my collection of utils (AV progs, etc).
     
    eLPuSHeR, Oct 1, 2015
    #11
  12. eLPuSHeR Win User
    To add some more weirdness. I have just run AdwCleaner from both Windows Explorer and TC and it didn't change anything. Maybe it's a bug in TC's sync feature. I will keep testing.
     
    eLPuSHeR, Oct 1, 2015
    #12
  13. eLPuSHeR Win User

    W10 changes timestamps on executables after running them. Normal?

    I am almost pretty sure it happens when any AV puts an executable in quarantine and you release it. It happened again with an executable quarantined in the destination usb drive by Panda Antivirus. It had its date updated for the time when it was scanned by the AV. I guess all AV programs do this then.

    I am still investigating though.

    PS - That was on a Windows 7 machine, just to clarify.
     
    eLPuSHeR, Oct 1, 2015
    #13
  14. Is the executable part of a regular program or stand alone app? I have one old game title VIPRE loves to see the main exe file locked up repeatedly despite adding it to the exceptions list. Never saw any time stamp change however.

    In fact I checked it now and it shows August 10, 2015 when I saw the clean install replace the pooched upgrade I ran with for the first week. For some reason the newer 2016 beta as well as the 2015 versions saw it as a bug while the 2014 never saw that come up.

    While I suspect restoring something might be the av program simply copying it back to the drive I doubt you see numerous files each with their own time stamp changed thar were never locked up but possibly being backed up and restored in some manner. If the av program should happen to modify not copy particular files that would account for some seeing this. In years past AVG would clean files that got buggy back in the XP days however.
     
    Night Hawk, Oct 1, 2015
    #14
  15. eLPuSHeR Win User
    I think I have may nailed it down to those antimalware software that uses AutoIT.
     
    eLPuSHeR, Oct 2, 2015
    #15
Thema:

W10 changes timestamps on executables after running them. Normal?

Loading...
  1. W10 changes timestamps on executables after running them. Normal? - Similar Threads - W10 changes timestamps

  2. W10 license after motherboard change

    in Windows 10 Updates and Activation
    W10 license after motherboard change: Hi, a few days my motherboard stoped working so I had to buy a new one, afther setting it up and login in with my w10 account, W is asking for a key again, and whenever I try to use my Key, its says something like " you can not use this key in this device"...
  3. Timestamp Changes Windows 10

    in Windows 10 Network and Sharing
    Timestamp Changes Windows 10: I use a server with Windows Server 2012 to store files needed for PCs that we build. Each PC is loaded with our software simply by a copy and paste method. All of the PCs are set to UTC Coordinated Universal Time and the Server is set to PST Pacific Standard Time. When I...
  4. troubles activating W10 after MOBO change (and W10 edition change?)

    in Windows 10 Ask Insider
    troubles activating W10 after MOBO change (and W10 edition change?): Dear all, thanks in advance to anyone who will help. I recently had to change MOBO due to stupid me pouring tea on top of my desktop. I brought it to a computer shop who seems to have been very transparent and competent. The computer had everything installed already, but I...
  5. Executable file not running

    in Windows 10 BSOD Crashes and Debugging
    Executable file not running: Hi, I have the following problem: Few months ago I wrote a python program that I converted with pyinstaller to an executable file. The .exe file ran smoothly. I got myself a new laptop and wanted to try the program, unfortunately I cannot start the program. Things I've...
  6. Problem rebooting W10 normally

    in Windows 10 Ask Insider
    Problem rebooting W10 normally: [ATTACH] Since an update earlier in the month, every time I reboot, I get that first screen. The only way to boot normally is by hitting F11 while rebooting, so I get this menu, where I can choose the third option. I have tried the advanced options startup repair, but to...
  7. Reactivating W10 after hardware change

    in Windows 10 Updates and Activation
    Reactivating W10 after hardware change: Have been over various articles for the last ~3 hours, among other things, little of which is helpful, most of which results in going in circles looking for something you've missed. As a result, I'm likely more than a little aggravated and passive-aggressive. Iwould apologise...
  8. W10 - Antimalware Service Executable

    in AntiVirus, Firewalls and System Security
    W10 - Antimalware Service Executable: Starting to lose my mind here. I have a completely fresh install of W10 Pro (Ver. 1909) on a modern PC, and since day one I've been having almost daily issue with the "Antimalware Service Executable" process locking up my computer for 5-10 minutes when it comes out of sleep....
  9. W10 - Antimalware Service Executable

    in Windows 10 Support
    W10 - Antimalware Service Executable: Starting to lose my mind here. I have a completely fresh install of W10 Pro (Ver. 1909) on a modern PC, and since day one I've been having almost daily issue with the "Antimalware Service Executable" process locking up my computer for 5-10 minutes when it comes out of sleep....
  10. Veracrypt container timestamp won't change

    in AntiVirus, Firewalls and System Security
    Veracrypt container timestamp won't change: A question for VeraCrypt users: Can you get the timestamp on a VeraCrypt container to change? I know there is an option "Preserve modification timestamp of file containers" which is supposed to prevent the timestamp from changing, but I do not have that option enabled....