AveYo / MediaCreationTool.bat

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

PSA: How to install Windows 11 22H2 #203

Closed GeekCornerGH closed 10 months ago

GeekCornerGH commented 1 year ago

Hi everyone. I'll be explaining how I managed to install Windows 11 22H2 on an unsupported device.

  1. You have first to download this script. You can copy paste it in notepad, then save the file as bat.
  2. Run the script. Just double click it. The script will prompt for admin mode, just accept. The script should said it got installed. If it shows it was removed, run the script one more time
  3. Download a Windows 11 22H2 iso file. Make sure to download an actual iso, and not the upgrade assistant. Make sure you also choose the right language.
  4. Mount the iso (right click --> Open with --> Windows Explorer) then double click the Setup.exe file.
  5. The Installer will act as if it was installing Windows Server, but don't worry, it means the script worked and you will get Windows 11 22H2.
  6. Follow the on-screen instructions
  7. After reboot, just login and enjoy

Bonus: run the following command in an admin cmd prompt to be able to get back to your previous version even after 10 days:

DISM /Online /Set-OSUninstallWindow /Value:XX

where XX is a number. Eg: you put 20: your restore point will last 20 days Instead of 10

liudonghua123 commented 1 year ago

I need to replace appraiserres.dll too. see https://github.com/AveYo/MediaCreationTool.bat/issues/194#issuecomment-1272302512.

hugalafutro commented 1 year ago

This worked for me without replacing the .dll just following the steps and disabling antivirus on Dell OptiPlex 3050. Thanks!

GeekCornerGH commented 1 year ago

I need to replace appraiserres.dll too. see #194 (comment).

@liudonghua123 I didn't had to

DigiNL commented 1 year ago

Does this also work to upgrade to 22h2 from 21h2 on a unsupported device?

liudonghua123 commented 1 year ago

Does this also work to upgrade to 22h2 from 21h2 on a unsupported device?

I installed 22h2 from 21h2 on an unsupported device using the above methods I mentioned.

DigiNL commented 1 year ago

Does this also work to upgrade to 22h2 from 21h2 on a unsupported device?

I installed 22h2 from 21h2 on an unsupported device using the above methods I mentioned.

so you upgraded and retained all settings and apps?

ghost commented 1 year ago

Thanks a lot! This was very easy and kept all my apps and files and settings!

liudonghua123 commented 1 year ago

Does this also work to upgrade to 22h2 from 21h2 on a unsupported device?

I installed 22h2 from 21h2 on an unsupported device using the above methods I mentioned.

so you upgraded and retained all settings and apps?

Yes, upgraded and retained all settings and apps.

DigiNL commented 1 year ago

it also keeps the same win 11 version while updating or do you have to select that during the process? i use win 11 enterprise.

AT-StephenDetomasi commented 1 year ago

Quick question - what are the long term implications of using this script for installation purposes? Would this possibly break future updates?

ctipper commented 1 year ago

I had luck just running the skip TPM script and running Windows Update. I don't know why I was getting 0x80888002 errors and it didn't happen after I ran the script and installed completely. Patching appraiser.dll should be a red flag to anyone trying that method and was completely unnecessary with my (fairly new) system.

TheHacker66 commented 1 year ago

Thanks, the script allowed the 22H2 upgrade to run, no need to do anything else.

Quick question - what are the long term implications of using this script for installation purposes? Would this possibly break future updates?

It doesn't. After upgrading, I checked for updates and installed them all without issues.

Ben569483 commented 1 year ago

the installation keeps failing at 22%

GeekCornerGH commented 1 year ago

the installation keeps failing at 22%

No error?

Ben569483 commented 1 year ago

the installation keeps failing at 22%

No error?

it just says "Windows server installation has failed" with no more info

kiraje commented 1 year ago

i got "sorry we're having trouble determining if your pc can run windows server" pls help

GeekCornerGH commented 1 year ago

i got "sorry we're having trouble determining if your pc can run windows server" pls help

Not sure why actually

Ben569483 commented 1 year ago

the installation keeps failing at 22%

No error?

it just says "Windows server installation has failed" with no more info

Update on this, it only shows this error if I have enough storage on my C drive, if I use external media for the install it doesn’t give me the error. But, when it reboots into the install it takes forever. I left it for around half an hour and was only on 3%

matheusrizzo1 commented 1 year ago

Upgrading from 21H2. This worked for me without replacing the .dll just following the steps. Thank you ❤️

GeekCornerGH commented 1 year ago

Upgrading from 21H2. This worked for me without replacing the .dll just following the steps. Thank you ❤️

You're welcome!

anjexe commented 1 year ago

i used the method trying to update my 21h2 to 22h2 but it did not work and had this error: we can't tell if your pc is ready to continue installing windows server (11 it means) try restarting setup.

coud any one help me i should explain that, i could not install windows update KB5021234 whit error code 0x800f0988 ,even if i try to install as an stand alone it dose not work

hb-webdev commented 1 year ago

TYSM. worked on my 21H2 MacOS MacBook Pro Mid-2015 in Boot Camp. Got stuck on 74% forever so just let it go overnight.

optimizegeek commented 1 year ago

Worked 100% - I didn't realize I didn't get the update but now I got it with this helpful tip. Thanks 👍

VanChapel commented 1 year ago

It is not working for me. Any step I might be missing?

biigyuyo commented 1 year ago

Hi, after running the installer the "keep files, configuration and apps" option it's dissabled is it safe to continue only with de "keep personal files" option?? TIA

ElliotKillick commented 1 year ago

If you're okay with WSL then I've just made a similar project called Mido: https://github.com/ElliotKillick/Mido

It's minimalist in that it's only for downloading the ISOs. Very clean and readable shell script. :)

Just an alternative for those who want something a bit simpler for VMs and such. Doesn't replace this amazing project in any way.

e-t-l commented 1 year ago

So all it takes is to run Skip_TPM_Check_on_Dynamic_Update.cmd, mount the 2h22 ISO, and run Setup.exe? Is it no longer required to do the whole workflow with running MediaCreationTool.bat?

AveYo commented 1 year ago

For upgrades and repairs it's the set-it-and-forget-it way, no need to patch & re-author iso's, but keep them original with verifiable hashes and whatnot.
It has been shadowed by the kick-ass feature to run insider builds from windows update directly, but it was always supported. MCT is for not downloading a whole fat ISO (5GB+) but a compressed ESD of 3GB and less, and author the iso locally (guaranteed to be compatible with fat32 usb sticks)

1bilal commented 10 months ago

@AveYo I ran MCT.bat and selected auto upgrade but I can't find the ISO. Does anyone know where the ISO gets saved?

pacav69 commented 10 months ago

@1bilal look at the dowbkiads directory for windows.iso

ASk1 commented 10 months ago

Upgraded this way as described in first post from 21H2 to 23H2. Just tell to installer not download updates during installation. No TPM, 4G RAM, i5-3317U

1bilal commented 10 months ago

I kept getting "we're not sure if your pc is ready to continue or something. Checked the setup log and got this: "MOUPG CSetupHost::Initialize(275): Result = 0x80070057 "i7-3630qm hp 8gb no tpm pavilion dv7. Any help would be appreciated.

gtumanyan commented 10 months ago

@1bilal run Skip_TPM_Check_on_Dynamic_Update again, reboot and you should be able to launch setup

1bilal commented 10 months ago

@gtumanyan Thanks I'll definitely give it a try