Mole icon indicating copy to clipboard operation
Mole copied to clipboard

[BUG] ➤ System File Verification Running System File Checker (this may take several minutes)...

Open Shepard33 opened this issue 9 months ago • 6 comments

Describe the bug

A clear and concise description of what the bug is. We suggest using English for better global understanding.

Steps to reproduce

  1. Run command: mo ...
  2. Optimize and Maintain
  3. Run System File Checker? This may take several minutes (y/N): y
  4. See error

✓ Scan completed

Optimization Complete

Optimizations applied: 7

☻ An error occurred: Impossible d’extraire la variable « $script:RepairsApplied », car elle n’a pas été définie.

Expected behavior

A clear and concise description of what you expected to happen.

Debug logs

Please run the command with --debug flag and paste the output here:

mo <command> --debug
# Example: mo clean --debug
Debug output
Paste the debug output here

Environment

Please run mo update to ensure you are on the latest version, then paste the output of mo --version below:

Paste mo --version output here

Additional context

Add any other context about the problem here, such as screenshots or related issues.

Image

Shepard33 avatar Mar 04 '26 16:03 Shepard33

@Shepard33 Thanks for reporting this; we’ve fixed it on the windows branch in commit 5d6b91a, so please pull the latest branch and rerun mo optimize (including SFC) to confirm the crash is resolved.

tw93 avatar Mar 05 '26 06:03 tw93

Hello

Wow that was quick :)

2 more things:

  1. You should add a "Mo update" (like the Mac version) => much more easier than pulling a last branch on GitHub :) #nerd
  2. I show the tool to a friend and it didn't work on his PC because you have to accept PowerShell Script (you need to run "set-executionpolicy unrestricted" on a Powershell with administrative privileges) => i think you could had this to the install method

Great tool anyway and nice job !

Shepard33 avatar Mar 05 '26 09:03 Shepard33

@Shepard33 so please pull the latest branch and rerun mo optimize (including SFC) to confirm the crash is resolved.

Yes it works. You should show the completion of the SFC command if possible And when it shows: "issue found: 1" you should propose to run the DSIM command no ?

Shepard33 avatar Mar 05 '26 10:03 Shepard33

@Shepard33 Originally, for Mac it’s mo update --nightly, but on Windows you’re very welcome to submit a PR.

tw93 avatar Mar 05 '26 12:03 tw93

PR ?

Shepard33 avatar Mar 07 '26 15:03 Shepard33

@Shepard33 PR means Pull Request.

In short, if you want to contribute code for ideas like:

  • showing clearer SFC progress/output
  • suggesting DISM automatically when SFC finds issues
  • improving the Windows installation/update flow

you’re very welcome to open a PR against the windows branch.

If you’re not familiar with that workflow, no problem at all, opening issues and sharing feedback like this is already very helpful.

Also, Windows support is currently experimental, but it is already being developed on the windows branch. We also now have a basic mo update flow there, so it’s getting closer to the macOS experience.

Thanks again for testing it and for the detailed suggestions.

tw93 avatar Mar 07 '26 15:03 tw93