Difficulty replacing a corrupt autochk.exe file


  1. jnn
    Posts : 3
    64
       #1

    Difficulty replacing a corrupt autochk.exe file


    So my autochk.exe file is corrupt, this was a coincidental find whilst doing a sfc scan, I wasn't experiencing any problems whatsoever.

    Now I have a good autochk.exe file, and my idea was to just plonk the good file in the place of the corrupted one.
    My idea was to rename the corrupted file, put the good file next to it, then if the good file appears to work smoothly, delete the old renamed file.

    Now here is my problem, no matter what I do, the old corrupted file will not budge.
    I tried to renaming it, it appears to be renamed, but when I go to paste in the working autochk.exe, it gives me an overwrite prompt, as there is already a file with that name in the folder. It basically acts like I have never renamed the file, although my screen clearly shows me I have (to autochk_old.exe). I can't remove the file from the folder either. After a while I had a "screw it" moment and decided to just try and overwrite, but again, that does not work.

    I am not that tech savvy, and am well aware that this is likely caused by my ignorance, so excuse me if not all the necessary information was added. If any additional info is needed, let me know, and I will do my utmost best to help you help me.

    I have given myself full administrative rights by following these instructions:

    "Right click on Autochk.exe -> Properties
    Click the Security tab, then click Advanced (button)
    On the new window 'Advanced Security Settings for Autochk.exe' click the
    'Owner' tab
    Below the box labeled 'Change owner to:' click 'Edit...'
    In the new window, under 'Change owner to:' select yourself (or the
    Administrators group), then click OK
    Close all property windows for autochk.exe, then go back to (right click)
    Properties->Security
    Click 'Edit...'
    On the window 'Permissions for Autochk.exe' select the Administrators group,
    then under 'Allow' click the 'Full Control' checkbox"
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    Try this: Take Ownership Shortcut

    Once added to the context menu, right click on autochk.exe and select Take Ownership. That should do it.
      My Computer


  3. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #3

    Replace system file


    An easy method to use if you get stuck:

    SysMate - Easily Replace Windows System Files - Technibble

    You just need to run the program and ensure that the file that you replace with is the correct one.

    A backup that can be restored will be created here:

    C:\SysMate_Backup\autochk.exe
      My Computer


  4. jnn
    Posts : 3
    64
    Thread Starter
       #4

    Ztruker said:
    Try this: Take Ownership Shortcut

    Once added to the context menu, right click on autochk.exe and select Take Ownership. That should do it.
    From what I understood this does not work on .exe files. I used the /takeown script from an elevated command prompt instead, didn't really change anything compared to the method I used as described in my opening post.
    I can still change the file name, but it doesn't actually seem to take effect. Visually it shows up as "autochk_old.exe", but for all other purposes it still treats it as if it were named "autochk.exe".
    Meaning that when I try to paste in the uncorrupted autochk.exe file, it conflicts with the corrupted one, as my system treats them both as if they were name "autochk.exe", despite me having changed the name of the corrupted file.

    I have added an attachment of what it looks like on my screen.



    Callender said:
    An easy method to use if you get stuck:

    SysMate - Easily Replace Windows System Files - Technibble

    You just need to run the program and ensure that the file that you replace with is the correct one.

    A backup that can be restored will be created here:

    C:\SysMate_Backup\autochk.exe

    I just tried using this, both methods of the program for taking control failed.
    Attached Thumbnails Attached Thumbnails Difficulty replacing a corrupt autochk.exe file-autochk.jpg  
      My Computer


  5. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #5

    SysMate


    Hi. This software has always worked for me. I've used it today to replace autochk.exe with a copy. I'm not sure where you downloaded a copy or if there was a problem with the copy that you used.

    Difficulty replacing a corrupt autochk.exe file-sysmate-system-file-walker.jpg
    Difficulty replacing a corrupt autochk.exe file-sysmate-system-file-walker2.jpg

    Try running the program from a folder on your desktop and right click the System File Walker.exe file and choose "Run as administrator" - you will have noticed that you need the correct version of .NET Framework installed. I used 4.0

    Other than that - take a look at step #12 in the tutorial here:

    Extract Files from Windows 7 Installation DVD
    Last edited by Callender; 01 Mar 2014 at 19:31. Reason: Correct typo
      My Computer


  6. jnn
    Posts : 3
    64
    Thread Starter
       #6

    The program still fails to take control of the file, after failing to do so, it terminates the attempt. How bad would it be to leave the file as is? I havent experienced any problems so far.
      My Computer


  7. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #7

    Replacing autochk.exe


    Hi,

    Well as far as I can work out the autochk.exe file in system32 needs to match the autochk.exe file in the WINSXS folder. I must confess that after replacing autochk.exe using the method that I posted previously left chkdsk unable to run and resulted in a non-booting machine! That didn't concern me too much as I just restored a system image backup and all is well.

    I'd ask you to seek more advice on this issue from other forum members and in any case it would be wise to back everything up even if you leave things as they are.

    Some research shows possible fixes:

    Repair Install

    Also see: AUTOCHK.EXE corrupted but ignore the advice about replacing with a copy from the WINSXS folder as that fix left me with a non booting machine! Have a look at post #7. but it seems that you've already tried renaming the file in order to replace it!
      My Computer


  8. Posts : 6,285
    Windows 10 Pro X64
       #8

    c:\windows\system32\autochk.exe is a hardlink to a file in c:\windows\Winsxs. Looks like that is the one you need to replace.

    C:\Windows\System32>fsutil hardlink list "C:\Windows\System32\autochk.exe"
    \Windows\System32\autochk.exe
    \Windows\WinSxS\amd64_microsoft-windows-autochk_31bf3856ad364e35_6.2.9200.16612_
    none_3b0749404b4e5a16\autochk.exe
      My Computer


  9. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #9

    Ztruker said:
    c:\windows\system32\autochk.exe is a hardlink to a file in c:\windows\Winsxs. Looks like that is the one you need to replace.

    C:\Windows\System32>fsutil hardlink list "C:\Windows\System32\autochk.exe"
    \Windows\System32\autochk.exe
    \Windows\WinSxS\amd64_microsoft-windows-autochk_31bf3856ad364e35_6.2.9200.16612_
    none_3b0749404b4e5a16\autochk.exe
    Hi,

    Thanks for the info. I'd already spotted that the file in the System32 folder is actually a hard link and from what I've been reading elsewhere it's the same file that is shown in the WinSxS folder. Indeed when I search for autochk.exe several locations are shown in search results. If I search the registry there are more enties depending upon which versions of Internet Explorer have been installed. I had no problems with my machine - but copying the autochk.exe file from WinSxS to System32 resulted in a non-booting machine after running chkdsk.

    From the info that I see on hard links here:

    https://blogs.technet.com/b/joscon/a...edirected=true

    It would appear that the file exists in the MFT with hard links pointing at it. However after searching the contents of MFT on my machine I don't see the file. Possibly that's a fault with the MFT viewer.

    From other forums I see that some users report a successful fix after replacing the files in WinSxS and Sytem32 with clean copies. That technique would seem to rely on performing an SFC/ scannow following file replacement as detailed in the above link......

    "Later if you were to run ‘SFC /scannow’ Windows would remove the new copy and establish a new hard link using the file that was still stored under WinSxS!."


    This seems to confirm what you're saying about replacing the WinSxS copy.
    Last edited by Callender; 04 Mar 2014 at 14:35. Reason: correct typo
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:58.
Find Us