Skip to content

Instantly share code, notes, and snippets.

@AveYo
Last active April 12, 2024 17:23
Show Gist options
  • Save AveYo/c74dc774a8fb81a332b5d65613187b15 to your computer and use it in GitHub Desktop.
Save AveYo/c74dc774a8fb81a332b5d65613187b15 to your computer and use it in GitHub Desktop.
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat

We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction

Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
Preview
A powerful yet simple windows 10 / 11 deployment automation tool as well!

discuss on MDL

2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 __release_svc_refresh__ and enable DynamicUpdate by default to grab latest CU
2019.09.29: UPDATED 19H1 build 18362.356 ; RS5 build 17763.379 and show build number
            added LATEST MCT choice to dinamically download the current version (all others have hard-coded links)
2019.11.16: 19H2 18363.418 as default choice (updated hard-coded links)
2020.02.29: 19H2 18363.592
2020.05.28: 2004 19041.264 first release
2020.10.29: 20H2 and aniversary script refactoring to support all MCT versions from 1507 to 20H2!!!
2020.10.30: hotfix utf-8, enterprise on 1909+
2020.11.01: fix remove unsupported options in older versions code breaking when path has spaces.. pff
2020.11.14: generate latest links for 1909,2004; all xml editing now in one go; resolved known cannot run script issues
2020.11.15: one-time clear of cached MCT, as script generates proper 1.0 catalog for 1507,1511,1703 since last update
            fixed compatibility with naked windows 7 powershell 2.0 / IPv6 / optional import $OEM$ / 1803+ business typo
            updated executables links for 1903 and 2004
2020.11.17: parse first commandline parameter as version, example: MediaCreationTool.bat 1909
2020.12.01: attempt to fix reported issues with 1703; no other changes (skipping 19042.630 leaked esd because it is broken)
2020.12.11: 20H2 19042.631; fixed pesky 1703 decryption bug on dual x86 + x64; improved cleanup; label includes version
2021.03.20: pre-release 21H1; optional auto upgrade or create media presets importing $OEM$ folder and key as PID.txt
2021.05.23: 21H1 release; enhanced script name args parsing, upgrade from embedded, auto.cmd / PID.txt / $OEM$ import
2021.06.06: create iso directly; enhanced dialogs; args from script name or commandline; refactoring is complete!
2021.08.04: done fiddling
2021.09.03: 21H2, both 10 and 11 [unreleased]
2021.09.25: Windows 11
            with Skip TPM Check on media boot as well as on dynamic update (standalone toggle script available)
            final touches for improved script reliability; enhanced auto upgrade preset; win 7 powershell 2.0 compatible
2021.09.30: fix Auto Setup preset not launching.. automatically
2021.10.04: fix for long standing tr localization quirks; Skip TPM Check v2 (ifeo-based instead of wmi)
2021.10.05: 11 22000.194 Release (rofl W11 MCT has limited capabilities, so still using 21H1 MCT because it works fine)
2021.10.09: outstanding refactoring around Windows 11 MCT; minimize while waiting MCT; unified 7 - 11 appearence
            We broke gist.github.com ;) Script has a new home now: https://github.com/AveYo/MediaCreationTool.bat 
@zhugexiaoshang
Copy link

zhugexiaoshang commented Jan 9, 2023 via email

@Sukinet82
Copy link

Hello,
the integration of the 22H2 version is planned for whom please?
THANKS

@StijnBousard
Copy link

Hello, the integration of the 22H2 version is planned for whom please? THANKS

I used this tool to update my 2000 Dell Studio XPS 1647 from Windows 10 to Windows 11 v21H2. When I tried to install v22H2 (from an .iso), I again got:

  • This PC doesn't currently meet Windows 11 system requirements (processor, TPM 2.0, Secure Boot, …)
    or
  • We can't tell if your PC is ready to continue installing Windows 11

Then I executed the very same https://github.com/AveYo/MediaCreationTool.bat/blob/main/bypass11/Skip_TPM_Check_on_Dynamic_Update.cmd file and the setup procedure launched and could be completed without any troubles.

@SlalomJohn
Copy link

Windows 10 22H2 are most be download?

@VaNeee333
Copy link

добрый день, при любом обновлении ловлю ошибку с кодом
0х80070424-0х90018, подскажите как быть? что делать?

@zhugexiaoshang
Copy link

zhugexiaoshang commented Jun 27, 2023 via email

@VaNeee333
Copy link

VaNeee333 commented Jun 28, 2023

who can u help me with my stop-code
0х80070424-0х90018 cant update windows ( i dont have function update windows ltsc enterprise version )

Copy link

ghost commented Jul 19, 2023

Its working yet or is broke?

@zhugexiaoshang
Copy link

zhugexiaoshang commented Jul 19, 2023 via email

@DaMastaa
Copy link

Works, but you must change. SkipTPM code. See Stijn's comment above. Thank you.

@zhugexiaoshang
Copy link

zhugexiaoshang commented Aug 29, 2023 via email

@030Artem030
Copy link

Do you think it's worth upgrading to windows11 on this app if my computer is suitable to upgrade but it's a long wait?

@zhugexiaoshang
Copy link

zhugexiaoshang commented Sep 20, 2023 via email

@MarlonPra
Copy link

¿Crees que vale la pena actualizar a windows11 en esta aplicación si mi computadora es adecuada para actualizar pero es una larga espera?

No bro, Win11 has many bugs, you should install it at the beginning of next year, so you avoid sudden shutdowns.

@NatoBoram
Copy link

It's only worth it if your computer is compatible and you get it via Windows Updates. Otherwise, it really does struggle with old hardware. Your mileage may vary.

@StijnBousard
Copy link

It works fine on my 13 year old DELL Studio XPS 16, but maybe that's an exception. If you're using this tool because a message appears that your hardware is not compatbible, you know it's on your own risk. Please make sure you have a backup of your OS partition before you start, e.g. using Aomei Backupper.

@Mobarakh534
Copy link

Nice

@Mobarakh534
Copy link

Nice

@zhugexiaoshang
Copy link

zhugexiaoshang commented Dec 16, 2023 via email

@baaaadeer
Copy link

Ход выполнения стоит на 0% без каких-либо изменений, это нормально?

@Boomnoot
Copy link

Boomnoot commented Mar 3, 2024

@zhugexiaoshang
Copy link

zhugexiaoshang commented Mar 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment