AveYo / MediaCreationTool.bat

Universal MCT wrapper script for all Windows 10/11 versions from 1507 to 21H2!
MIT License
8.99k stars 3k forks source link

Windows 11 Upgrade failing to download #125

Closed RedPCat closed 2 years ago

RedPCat commented 2 years ago

So... I've been having an issue trying to upgrade to Windows 11 22572 on Windows 10.

I should get: image

But instead I get: image

Other updates work except for that exact update.

And note: That this worked originally when 22518 was out to 22557

Also forgot to mention that the update doesn't even download so I can't even get the logs.

ShingZhanho commented 2 years ago

Same problem here, thought I was the only one who got this error.

W11-Bypass-Failure

AveYo commented 2 years ago

Microsoft recommends first upgrading to release 11 build - you must enroll to BETA channel! Once on 11, you can then enroll to DEV channel and search for updates.

Last 3 dev builds have been multiple-levels-of-broken.
Upgrade from 10 to 11 via Windows Update has not worked great either for even longer.
But good news, MS sorted their shit and fixed some issues with Windows Update on their end.
Won't solve your local issues tho. So I have shared a new script to refresh WU: windows_update_refresh.bat
I too had some updating issues on two machines, and the brute-force refresh script helped instantly!

RedPCat commented 2 years ago

Ok, I'll try and I'll keep you updated if it works.

RedPCat commented 2 years ago

Ok, so the Release is downloading.

AveYo commented 2 years ago

@RedcatPhoenix2, still downloading? ;)

RedPCat commented 2 years ago

Not anymore but now it blue screens whenever I try installing when it reaches 75%

RedPCat commented 2 years ago

I mean like after upgrading to 22572

AveYo commented 2 years ago

Haven't seen a BSOD in dozens of devices I've setup. There must be a bad driver or a piece of software (like an antivirus with kernel drivers) causing it. It's not something these scripts could possibly cause.

RedPCat commented 2 years ago

Haven't seen a BSOD in dozens of devices I've setup. There must be a bad driver or a piece of software (like an antivirus with kernel drivers) causing it. It's not something these scripts could possibly cause.

@AveYo

Maybe, because I didn't end my Malwarebytes trial. But now, it's showing update status unknown. image

RedPCat commented 2 years ago

Ok, so ran the refresh batch script and reopened settings, it fixed itself.

HuyHung1408 commented 2 years ago

image image I'm in beta channel, cannot update! You can see how many times I clicked retry..

AveYo commented 2 years ago

image image I'm in beta channel, cannot update! You can see how many times I clicked retry..

I can see that, but it does not help me helping you.

Use windows_update_refresh.bat, then retry upgrade. If still not working, provide:

HuyHung1408 commented 2 years ago

image image I'm in beta channel, cannot update! You can see how many times I clicked retry..

I can see that, but it does not help me helping you.

Use windows_update_refresh.bat, then retry upgrade. If still not working, provide:

  • your current build version
  • your 11 supported or not status (cpu, tpm, secureboot)
  • your upgrade logs if any in C:\$WINDOWS.~BT\Sources\Panther (zip the whole thing)
AveYo commented 2 years ago

Since Beta jumped build (same as Dev), bypassing is no longer trivial. You need to follow the instructions under Get 11 via Windows Update on "unsupported" hardware

Step 1: use Skip_TPM_Check_on_Dynamic_Update.cmd to automatically bypass setup requirements
It's a set it and forget it script, with built-in undo - v7 using more reliable /Product Server trick

Step 2: use OfflineInsiderEnroll to subscribe to the channel you want
while on 10, use BETA for Windows 11 22000.x builds (release), DEV for Windows 11 225xx.x builds (experimental)

Step 3: check for updates via Settings - Windows Update and select Upgrade to Windows 11

DMH70 commented 2 years ago

setuperr.zip

Here are the only 2 logs I could see . @AveYo

AveYo commented 2 years ago

setuperr.zip

Here are the only 2 logs I could see . @AveYo

so the bypass script works, but:

2022-03-26 11:53:28, Info MOUPG We are exiting in Update Setup due to compat issues. We should not clean up in this case so we can resume.

You haven't zipped the whole folder so I can't tell the actual compat issue

DMH70 commented 2 years ago

setuperr.zip Here are the only 2 logs I could see . @AveYo

so the bypass script works, but:

2022-03-26 11:53:28, Info MOUPG We are exiting in Update Setup due to compat issues. We should not clean up in this case so we can resume.

You haven't zipped the whole folder so I can't tell the actual compat issue Here you go...

Panther.zip

AveYo commented 2 years ago

@DMH70, so there's some overlapping there in compatibility reports.
I would try:

If it still fails, provide a new Panther.zip

ALTERNATIVE I'm thinking maybe save some time and just use the iso to upgrade if you have it ready:

DMH70 commented 2 years ago

@AveYo Did not work again so here is the new zip

Panther.zip

DMH70 commented 2 years ago

'setupprep' is not recognized as an internal or external command, operable program or batch file.

Getting this error after entering "setupprep /Compat IgnoreWarning /MigrateDrivers All /ResizeRecoveryPartition Disable /ShowOOBE None /Telemetry Disable /CompactOS Disable /DynamicUpdate Disable"

HuyHung1408 commented 2 years ago

Since Beta jumped build (same as Dev), bypassing is no longer trivial. You need to follow the instructions under Get 11 via Windows Update on "unsupported" hardware

Step 1: use Skip_TPM_Check_on_Dynamic_Update.cmd to automatically bypass setup requirements It's a set it and forget it script, with built-in undo - v7 using more reliable /Product Server trick

Step 2: use OfflineInsiderEnroll to subscribe to the channel you want while on 10, use BETA for Windows 11 22000.x builds (release), DEV for Windows 11 225xx.x builds (experimental)

Step 3: check for updates via Settings - Windows Update and select Upgrade to Windows 11

Unfortunately, it still show the same error.

AveYo commented 2 years ago

'setupprep' is not recognized as an internal or external command, operable program or batch file.

Getting this error after entering "setupprep /Compat IgnoreWarning /MigrateDrivers All /ResizeRecoveryPartition Disable /ShowOOBE None /Telemetry Disable /CompactOS Disable /DynamicUpdate Disable"

that does not look like your cmd prompt is where it was supposed to if you followed the instr
can you screenshot the prompt? or copy paste all text here

AveYo commented 2 years ago

https://user-images.githubusercontent.com/12874843/160273499-812e5785-f007-4849-9908-0c5f50177929.mp4

https://user-images.githubusercontent.com/12874843/160273504-837bb27c-4f2d-4c73-ace9-9087d76c19bd.mp4

@HuyHung1408, attached some shitty captures (sorry about that) for the alt iso method

HuyHung1408 commented 2 years ago

ok I will try that! Thanks

DMH70 commented 2 years ago

'setupprep' is not recognized as an internal or external command, operable program or batch file. Getting this error after entering "setupprep /Compat IgnoreWarning /MigrateDrivers All /ResizeRecoveryPartition Disable /ShowOOBE None /Telemetry Disable /CompactOS Disable /DynamicUpdate Disable"

that does not look like your cmd prompt is where it was supposed to if you followed the instr can you screenshot the prompt? or copy paste all text here

When I click this Windows_InsiderPreview_SDK_en-us_22581_1.iso it opens to here A 1 1 Screenshot 2022-03-27 064452

, I move it all to here A 1 2 Screenshot 2022-03-27 064452

AveYo commented 2 years ago

@DMH70, uh. That's not windows iso to install. It's a sdk. No wonder it does not work ;)

So, back to doing it via windows update (for both, @HuyHung1408 & @DMH70):

If it still fails, provide a new Panther.zip

HuyHung1408 commented 2 years ago

Tried again, still error, no Panther folder, guess I will try iso then, thanks for your help!

AveYo commented 2 years ago

Tried again, still error, no Panther folder, guess I will try iso then, thanks for your help!

I bet the script is blocked for you by overly zealous antivirus or something. What does entering this in console returns:

;
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SetupHost.exe\0" /v Debugger
;
HuyHung1408 commented 2 years ago

Tried again, still error, no Panther folder, guess I will try iso then, thanks for your help!

I bet the script is blocked for you by overly zealous antivirus or something. What does entering this in console returns:

;
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SetupHost.exe\0" /v Debugger
;

I don't trust or install any antivirus software lol, btw here's the result:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SetupHost.exe\0
    Debugger    REG_SZ    powershell -win 1 -nop -c iex (get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SetupHost.exe\0' 'Code' -ea 0).Code; write-host --%
DMH70 commented 2 years ago

Ok, finally was able to try again with your instructions. No go still not installing. Here is the latest Panther folder zip..

Panther.zip

DMH70 commented 2 years ago

@DMH70, so there's some overlapping there in compatibility reports. I would try:

  • ALTERNATIVE I'm thinking maybe save some time and just use the iso to upgrade if you have it ready:

  • run Skip_TPM_Check_on_Dynamic_Update.cmd but this time to remove it (magenta response)

  • mount the insider beta iso and copy everything to a folder on your hdd

  • open that folder, sources subfolder, then at the address bar enter cmd in cmd that should be in X:\your-folder\sources> enter: cd.>appraiserres.dll then enter: setupprep /Compat IgnoreWarning /MigrateDrivers All /ResizeRecoveryPartition Disable /ShowOOBE None /Telemetry Disable /CompactOS Disable /DynamicUpdate Disable setup should now start with troubleshooting options

Ok, trying this now. Downloaded correct iso and so far I'm at 37%. Though it has been at 37% for a while now.

AveYo commented 2 years ago

@DMH70,

Ok, finally was able to try again with your instructions. No go still not installing. Here is the latest Panther folder zip..

Panther.zip

so these fresh logs are great!

<CompatibilityInfo BlockingType="Hard"
 Message="Your PC settings need to be adjusted before upgrading to the latest version of Windows."
 Title="Your PC settings need to be adjusted before upgrading to the latest version of Windows."/>
<Link Target="https://go.microsoft.com/fwlink/?LinkId=2119737" 
Value="Turn off memory integrity protection to continue."/>

Turn off Core Isolation - memory integrity protection under Defender - Device security.

AveYo commented 2 years ago

@HuyHung1408,

I don't trust or install any antivirus software lol, btw here's the result:

I guess that's your issue ;) "tweaked" system, something is probably missing/disabled that is needed for upgrades via windows update. Should be fine with iso setup.

DMH70 commented 2 years ago

@DMH70,

Ok, finally was able to try again with your instructions. No go still not installing. Here is the latest Panther folder zip.. Panther.zip

so these fresh logs are great!

<CompatibilityInfo BlockingType="Hard"
 Message="Your PC settings need to be adjusted before upgrading to the latest version of Windows."
 Title="Your PC settings need to be adjusted before upgrading to the latest version of Windows."/>
<Link Target="https://go.microsoft.com/fwlink/?LinkId=2119737" 
Value="Turn off memory integrity protection to continue."/>

Turn off Core Isolation - memory integrity protection under Defender - Device security.

Trying it now. Will let you know....

AveYo commented 2 years ago

Trying it now. Will let you know....

No other reason it should fail (there are some HP driver stuff and some storage volume issues but but should be fine).

Why did you even enable that for your system? Old intel processors with onboard graphics have really old and bad gpu drivers that are incompatible with Core Isolation. It's fine when you use external gpu and do not enable the onboard one. Tho the feature itself is mostly marketing, has not stopped anything so far, malware has plenty of windows vulnerabilities to exploit and go around such "protections". It requires a uefi variable change so it will ask for reboot and maybe prompt you to disable it before windows launch. Make sure to check it's disabled before you retry.

DMH70 commented 2 years ago

So far all is looking good. 46% now

DMH70 commented 2 years ago

Yeah!!! We are golden! Thanks for your help!! All of this is just because of Core Isolation feature.... What a pain! lol

A 1 3 Screenshot 2022-03-28 053730

I had it on as I don't have TPM so I thought it would be good to have an added security feature to go along with MS's Defender...

HuyHung1408 commented 2 years ago

Thanks a lot for your support! I using the iso method now. Remove the Dynamic Update and the setup.exe lauch lol, before that it just disappear

HuyHung1408 commented 2 years ago

https://winaero.com/windows-11-22h2-may-have-even-stricter-hardware-requirements/ I found out why I can't install the latest build through normal Windows Update!

However, the change log doesn't include any note of the changed upgrade behavior. Now, if your device doesn't include TPM or fails to meet other hardware requirements, you won't get the latest build even in the Beta channel.

AveYo commented 2 years ago

https://winaero.com/windows-11-22h2-may-have-even-stricter-hardware-requirements/ I found out why I can't install the latest build through normal Windows Update!

However, the change log doesn't include any note of the changed upgrade behavior. Now, if your device doesn't include TPM or fails to meet other hardware requirements, you won't get the latest build even in the Beta channel.

You did not know that Dev has been like that for months? And that Beta is now exactly the same build as Dev?

That's why I keep saying to follow Get 11 via Windows Update on "unsupported" hardware precisely as instructed

HuyHung1408 commented 2 years ago

https://winaero.com/windows-11-22h2-may-have-even-stricter-hardware-requirements/ I found out why I can't install the latest build through normal Windows Update!

However, the change log doesn't include any note of the changed upgrade behavior. Now, if your device doesn't include TPM or fails to meet other hardware requirements, you won't get the latest build even in the Beta channel.

You did not know that Dev has been like that for months? And that Beta is now exactly the same build as Dev?

That's why I keep saying to follow Get 11 via Windows Update on "unsupported" hardware precisely as instructed

Ah, thanks for explaining it to me. I didn't pay much attention to the Dev channel 🥲

DMH70 commented 2 years ago

" Version 22H2 Installed on ‎3/‎28/‎2022 OS build 22581.200 Experience Windows Feature Experience Pack 1000.22581.200.0"

Everything still working like a charm! Updates are being completed as they should.

Thanks so much for your help!

RedPCat commented 2 years ago

Ok, so ran the refresh batch script and reopened settings, it fixed itself.

Currently on 22572, it worked (I'm not on the latest insider due to major bugs)