Share via

How to determine why Startup Repair is triggered

Anonymous
2021-08-31T21:57:54+00:00

My Windows 10 device seems to sporadically go into "Preparing Startup Repair" on boot. I can often get back to a proper boot just by restarting, but then next time I restart the device it does it again.

So I'm trying to diagnose what prompts Windows to begin "Startup Repair" in the first place? I've been searching and there is plenty of info on how to fix and diagnosing why it might be failing, but very little on why it starts in the first place other than vague speculation. Apparently it may be because of corrupt or missing system files. But how can I check which of the files are corrupt or missing?

The device is running Windows 10 IoT, using write filters. There are a number of exclusions from the write filters but my current working theory is that maybe it has something to do with this, e.g. more (or less) locations need to be excluded here. But to figure this out, I'd need to understand what files are corrupted or missing. Is there a log of these checks which would indicate why Windows decided to trigger a startup repair?

I've found C:\Windows\System32\Logfiles\Srt\SrtTrail.txt - but this seems more like a log of the checks done by the repair. The "error code"s of all the tests done here are 0x0.

Even a complete list of files checked / other checks could be useful

Edit

Apologies, probably should have mentioned before:

This is an embedded device running a dedicated application that we have created as the shell. Aside from some Microsoft applications the only things installed are our applications so it's very unlikely to be a virus or malware. It happens on different devices (all of the same spec) so it's not likely to be a hardware issue, but an issue with the OS image itself (possibly how I have it configured).

This issue only seems to happen with Write Filters turned on, whether or not our application was running at the time of shutdown.

My goal here is to find out what exactly is causing the Startup Repair to begin, so that I can rectify it and prevent it from reoccurring, e.g. if it's an issue with our software, to fix that bug, or if it is an issue with our configuration, to fix that one.

Thanks for your time.

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2021-09-01T09:31:53+00:00

    Hi Greg,

    Thanks for your reply

    It's very unlikely to be malware - the only software installed on this device are our own in-house applications and Microsoft applications. I have updated my question with more details.

    > I know you don't see the need for repairs

    It's the opposite actually - I know there is a need for repair (or rather preventative measure) - what I'm looking to find out is what exactly needs to be repaired. e.g. what files, what settings, something else?

    The Automatic Repair does seem to be repairing it so I can boot the next time, but then it occurs again on the following reboot.

    Thanks

    Colm

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-09-01T16:10:48+00:00

    Hi again Colm -

    Where are the results of the steps I gave you to perform? This is an interactive process. I give steps to perform, you do each one and then report back results until something works, so I know what to suggest next. If you need help performing any step, just ask back. But please do not skip any steps. We often find out the skipped step is the fix.

    You may not think there's malware but we don't just guess in such cases, so before doing a System File Check a Malware check is always included if the advisor is experienced and knows what they're doing. Otherwise half the time one would be checking and trying to repair System File Integrity while there's malware on the drive.

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-09-01T00:00:12+00:00

    Hi Ana, thanks for your response

    However I'm not necessarily asking how to repair Windows. If I just restart from the Automatic Repair screen, Windows will boot correctly.

    What I am looking to do is figure out how it's getting corrupted in the first place.

    I've been doing some experimenting and it appears that this Automatic Repair only happens when the Write Filters (UWF) are turned on (with some exclusions)

    This leads me to theorise that when I do a restart there may be some files or registry keys that get successfully updated on shutdown as part of a cleanup or something, but not others (because of the write filter), and the inconsistency is considered corruption by Windows.

    So what would be great is to find out - what checks are carried out by Windows in order to determine whether an Automatic Repair is necessary, and if possible, which ones are failing.

    Thanks

    Colm

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2021-09-01T03:55:49+00:00

    Hi Colm. I'm Greg, 10 years awarded Windows MVP specializing in installation, performance, troubleshooting and activation, here to help you.

    If it says it's automating Disk Check that could be a sign the disk is failing. If it's merely Startup Repair then something is making Windows think that it cannot start. It could also be in the grips of a virus.

    I know you don't see the need for repairs, but let's pro-actively do some checks to make sure there are no imminent failures portended:

    Download, install and run a full scan with the most powerful on-demand free scanner Malwarebytes:

    https://www.malwarebytes.com/mwb-download/ Make sure to only choose the Free version.

    In the Malwarebytes Settings (gear icon) > Security tab set it to include scanning for Rootkits.

    If necessary run it in Safe Mode with Networking, or Safe Mode accessed by one of these methods: https://www.digitalcitizen.life/4-ways-boot-saf...

    Clean up anything found, restart PC and then run again until it comes up clean.

    Then download, install and run a full scan with AdwCleaner:

    http://www.bleepingcomputer.com/download/adwcle...

    Remove whatever it finds.

    Check for anything it finds but is still left over in Settings > Apps > Apps & Features, and C:\Program Files and C:\Program Files(86) to uninstall or delete them. I can guide you how to do this if there are problems.

    Also in each of your browser's Extensions, Home Page settings, Search service or Add-On's as shown here: https://www.computerhope.com/issues/ch001411.htm

    to disable anything you didn't add yourself and are sure you need. Ask back if in doubt.

    Then check for damaged System files by running System File Checker from Step 10 in this checklist:

    Windows 10 Performance and Install Integrity Checklist - Microsoft Community

    If completing all of Step 10 in above Checklist doesn't fix it then run a Repair Install which reinstalls WIndows while keeping your files, programs and most settings in place, by installing the Media Creation Tool from this link: Download Windows 10, open the tool and choose Upgrade This PC Now. This will solve most problems and also bring it up to the latest version which you need anyway and by the most stable method.

    If you want to keep Malwarebytes as an on-demand scanner then you can turn off its Real Time trial version using the slider buttons on it's front panel.

    I hope this helps. Feel free to ask back any questions and let me know how it goes. I will keep working with you until it's resolved.

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2021-08-31T22:42:58+00:00

    Hi, I'm Ana M. I would love to help you today.

    Try entering Safe Mode to repair Windows.

    Press and hold the power button for 10 seconds to perform a complete shutdown, you must do this three times or more in order to enter Safe Mode.

    Check this link in the Option (From a black or black screen)

    https://support.microsoft.com/en-us/windows/sta...

    Go to Troubleshooting - Advanced Options - Reset this PC

    There you will have 3 options:

    1- Keep my files and applications

    2- Save my files

    3- Do not save anything

    I recommend you use the first option.

    If you can't restore Windows after performing the previous steps.

    I recommend you borrow a PC to create a USB to repair Windows

    https://www.microsoft.com/en-us/software-downlo...

    See here the correct way to recover your files when repairing Windows:

    https://www.ubackup.com/windows-10/reinstall-wi...

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    1 person found this answer helpful.
    0 comments No comments