Skip to content

Add DISM and SFC commands to the script? #8

Description

@macnaughtani

Hello. Please let me know if this is not the appropriate channel for this.

Thank you for this script. It is working great (although I've not been able to get it working from Intune yet - another story). I've found at least a couple of times that after the W11 upgrade fails, I've run DISM and SFC commands (see below), kicked off the script again and the W11 upgrade succeeds. Could these be incorporated into the script or is that a bad idea?

I can see that DISM is used in the script but I think for different purposes. I can also probably figure out how to incorporate it myself but my PowerShell is clearly not at the same level as yours so thought I'd ask here first.

These are the commands I ran after first W11 upgrade was not successful:

DISM.exe /Online /Cleanup-image /Restorehealth

Followed by:

sfc /scannow

In at least one case, SFC reported some corrupt files that it fixed. Unfortunately, I can't be sure which, both or even if these commands helped the second upgrade attempt to be successful. And we don't have a big sample yet so maybe I was just lucky on the second attempts. In any case, I figured no harm in asking.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions