@call :init MediaCreationTool.bat - latest version at pastebin.com/bBw0Avc4 or git.io/MediaCreationTool.bat |
:: Universal MCT wrapper script by AveYo - for all Windows 10 versions from 1507 to 20H2! |
:: Nothing but Microsoft-hosted source links and no third-party tools - script just configures a xml and starts MCT! |
:: Ingenious support for business editions (Enterprise / VL) selecting language, x86, x64 or AiO inside the MCT GUI! |
:: Changelog: 2020.12.01 |
:: - attempt to fix reported issues with 1703; no other changes (skipping 19042.630 leaked esd because it is broken) |
:: - fixed compatibility with naked windows 7 powershell 2.0 / IPv6 / optional import $OEM$ / 1803+ business typo |
:: - generate latest links for 1909,2004; all xml editing now in one go; resolved known cannot run script issues |
:: - 2009: 19042.572 / 2004: 19041.572 / 1909: 18363.1139 / 1903: 18362.356 / 1809: 17763.379 / 1803: 17134.112 |
|
setCHOICES= 1507, 1511, 1607, 1703, 1709, 1803, 1809, 1903 [19H1], 1909 [19H2], 2004 [20H1], 2009 [20H2] |
|
:: comment to not unhide Enterprise for 1709+ in products.xml |
set/a UNHIDE_BUSINESS=1 |
|
:: comment to not insert Enterprise esd links for 1511,1607,1703 and update links for 1909,2004 in products.xml |
set/a UPDATE_BUSINESS=1 |
|
:: uncomment to bypass gui dialog choice and hardcode the MCT version: 1=1507, 2=1511, 3=1607, ... 10=20H1, 11=20H2 |
rem set/a MCT_VERSION=11 |
|
:: uncomment to force a specific Edition, Architecture and Language - if enabled, all 3 should be used |
rem set OPTIONS=%OPTIONS% /MediaEdition Enterprise /MediaArch x64 /MediaLangCode en-us |
|
:: uncomment to force Auto Upgrade without user intervention - or just rename the script to "auto MediaCreationTool.bat" |
rem set OPTIONS=%OPTIONS% /Eula Accept /MigChoice Upgrade /Auto Upgrade /Action UpgradeNow |
|
:: uncomment to disable dynamic update when doing upgrades - it increases the duration substantially |
rem set OPTIONS=%OPTIONS% /DynamicUpdate Disable |
|
:: add / remove extra launch parameters below if needed - default preset gives the least amount of issues when doing upgrades |
setOPTIONS=%OPTIONS% /MigrateDrivers All /ResizeRecoveryPartition Disable /ShowOOBE None /Compat IgnoreWarning /CompactOS Disable |
|
:: comment to enable default setup telemetry |
setOPTIONS=%OPTIONS% /Telemetry Disable |
|
:: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : |
:: parse first commandline parameter as version, example: MediaCreationTool.bat 1909 |
for%%V in (1.1507 2.1511 3.1607 4.1703 5.1709 6.1803 7.1809 8.1903 9.1909 10.2004 11.2009) do if%%~xV==.%1setMCT_VERSION=%%~nV |
|
:: handle auto upgrade scenario without user intervention when script was renamed to "auto MediaCreationTool.bat" |
for /f %%s in ("%~n0") do if /i %%s EQU auto ifnotdefined MCT_VERSION setMCT_VERSION=11 |
|
:: choices dialog |
ifnotdefined MCT_VERSION call :choices MCT_VERSION "%CHOICES%"11"Create Windows 10 Media"12 white dodgerblue 300 |
@goto version-%MCT_VERSION% |
|
:version-0 |
%<%:e1 " NO MCT_VERSION SELECTED "%>%&popd&timeout /t 5>nul& exit/b |
|
:version-11 |
set"V=2009"&set"B=19042.572.201009-1947.20h2_release_svc_refresh"&set"D=2020/10/"&set"C=1.4.1" |
set"CAB=http://download.microsoft.com/download/4/5/e/45eabe71-8b8f-487f-b591-314be20231d3/products_20201013.cab" |
set"MCT=http://download.microsoft.com/download/4/c/c/4cc6c15c-75a5-4d1b-a3fe-140a5e09c9ff/MediaCreationTool20H2.exe" |
:: just a 2004 with an integrated enablement package to mainly bundle ChrEdge; bloats install.esd file above 4GB FAT32 limit! |
goto process |
|
:version-10 |
set"V=2004"&set"B=19041.508.200907-0256.vb_release_svc_refresh"&set"D=2020/09/"&set"C=1.4" |
if%UPDATE_BUSINESS%0 GEQ1set"B=19041.572.201009-1946.vb_release_svc_refresh"&set"D=2020/11/" |
set"CAB=http://download.microsoft.com/download/7/4/4/744ccd60-3203-4eea-bfa2-4d04e18a1552/products.cab" |
set"MCT=http://software-download.microsoft.com/download/pr/8d71966f-05fd-4d64-900b-f49135257fa5/MediaCreationTool2004.exe" |
:: visible improvements to windows update, defender, search, dx12, wsl, sandbox; pushing ChrEdge update intensifies |
goto process |
|
:version-9 |
set"V=1909"&set"B=18363.592.200109-2016.19h2_release_svc_refresh"&set"D=2020/01/"&set"C=1.3" |
if%UPDATE_BUSINESS%0 GEQ1set"B=18363.1139.201008-0514.19h2_release_svc_refresh"&set"D=2020/11/" |
set"CAB=http://download.microsoft.com/download/8/2/b/82b12fa5-cab6-4d37-8167-16630c6151eb/products_20200116.cab" |
set"MCT=http://download.microsoft.com/download/c/0/b/c0b2b254-54f1-42de-bfe5-82effe499ee0/MediaCreationTool1909.exe" |
:: just a 1903 with an integrated enablement package to activate usability and security fixes |
goto process |
|
:version-8 |
set"V=1903"&set"B=18362.356.190909-1636.19h1_release_svc_refresh"&set"D=2019/09/"&set"C=1.3" |
set"CAB=http://download.microsoft.com/download/4/e/4/4e491657-24c8-4b7d-a8c2-b7e4d28670db/products_20190912.cab" |
set"MCT=http://download.microsoft.com/download/9/8/8/9886d5ac-8d7c-4570-a3af-e887ce89cf65/MediaCreationTool1903.exe" |
:: modern windows 10 starts here with proper memory allocation, cpu scheduling, security features |
goto process |
|
:version-7 |
set"V=1809"&set"B=17763.379.190312-0539.rs5_release_svc_refresh"&set"D=2019/03/"&set"C=1.3" |
set"CAB=http://download.microsoft.com/download/8/E/8/8E852CBF-0BCC-454E-BDF5-60443569617C/products_20190314.cab" |
set"MCT=http://software-download.microsoft.com/download/pr/MediaCreationTool1809.exe" |
:: rather mediocre considering it is the base for ltsc 2019; less smooth than 1803 in games; intel pre-4th-gen still buggy |
goto process |
|
:version-6 |
set"V=1803"&set"B=17134.112.180619-1212.rs4_release_svc_refresh"&set"D=2018/07/"&set"C=1.2" |
set"CAB=http://download.microsoft.com/download/5/C/B/5CB83D2A-2D7E-4129-9AFE-353F8459AA8B/products_20180705.cab" |
set"MCT=http://software-download.microsoft.com/download/pr/MediaCreationTool1803.exe" |
:: update available to finally fix most standby memory issues that were present since 1703; intel pre-4th-gen still buggy |
goto process |
|
:version-5 |
set"V=1709"&set"B=16299.125.171213-1220.rs3_release_svc_refresh"&set"D=2018/01/"&set"C=1.1" |
set"CAB=http://download.microsoft.com/download/3/2/3/323D0F94-95D2-47DE-BB83-1D4AC3331190/products_20180105.cab" |
set"MCT=http://download.microsoft.com/download/A/B/E/ABEE70FE-7DE8-472A-8893-5F69947DE0B1/MediaCreationTool.exe" |
:: plagued by standby and other memory allocation bugs, fullscreen optimisation issues, worst version of windows 10 by far |
goto process |
|
:version-4 |
set"V=1703"&set"B=15063.0.170710-1358.rs2_release_svc_refresh"&set"D=2017/07/"&set"C=1.0" |
set"XML=http://download.microsoft.com/download/2/E/B/2EBE3F9E-46F6-4DB8-9C84-659F7CCEDED1/products20170727.xml" |
set"MCT=http://download.microsoft.com/download/1/F/E/1FE453BE-89E0-4B6D-8FF8-35B8FA35EC3F/MediaCreationTool.exe" |
rem 1703 MCT works in all my tests, but some people are experiencing issues, so using 1607 MCT instead |
set"MCT=http://download.microsoft.com/download/C/F/9/CF9862F9-3D22-4811-99E7-68CE3327DAE6/MediaCreationTool.exe" |
:: some gamers still find it the best despite unfixed memory allocation bugs and exposed cpu flaws; can select Cloud (S) |
goto process |
|
:version-3 |
set"V=1607"&set"B=14393.0.161119-1705.rs1_refresh"&set"D=2017/01/"&set"C=1.0" |
set"CAB=http://wscont.apps.microsoft.com/winstore/OSUpgradeNotification/MediaCreationTool/prod/Products_20170116.cab" |
set"MCT=http://download.microsoft.com/download/C/F/9/CF9862F9-3D22-4811-99E7-68CE3327DAE6/MediaCreationTool.exe" |
:: snappy and stable for legacy hardware |
goto process |
|
:version-2 |
set"V=1511"&set"B=10586.0.160426-1409.th2_refresh"&set"D=2016/05/"&set"C=1.0" |
set"XML=http://wscont.apps.microsoft.com/winstore/OSUpgradeNotification/MediaCreationTool/prod/Products05242016.xml" |
set"MCT=http://download.microsoft.com/download/1/C/4/1C41BC6B-F8AB-403B-B04E-C96ED6047488/MediaCreationTool.exe" |
rem 1511 MCT exe works and can select Education - using 1607 one instead anyway for unified products.xml catalog 1.0 format |
set"MCT=http://download.microsoft.com/download/C/F/9/CF9862F9-3D22-4811-99E7-68CE3327DAE6/MediaCreationTool.exe" |
:: most would rather go with 1507 or 1607 instead as with a little effort can apply latest ltsb updates on all editions |
goto process |
|
:version-1 |
set"V=1507"&set"B=10240.16393.150909-1450.th1_refresh"&set"D=2015/09/"&set"C=1.0" |
set"XML=http://wscont.apps.microsoft.com/winstore/OSUpgradeNotification/MediaCreationTool/prod/Products09232015_2.xml" |
set"MCT=http://download.microsoft.com/download/1/C/8/1C8BAF5C-9B7E-44FB-A90A-F58590B5DF7B/v2.0/MediaCreationToolx64.exe" |
set"MCT32=http://download.microsoft.com/download/1/C/8/1C8BAF5C-9B7E-44FB-A90A-F58590B5DF7B/v2.0/MediaCreationTool.exe" |
if /i "%PROCESSOR_ARCHITECTURE%"=="x86"ifnotdefined PROCESSOR_ARCHITEW6432 set"MCT=%MCT32%" |
rem 1507 MCT exe works but cant select Education - using 1607 one instead anyway for unified products.xml catalog 1.0 format |
set"MCT=http://download.microsoft.com/download/C/F/9/CF9862F9-3D22-4811-99E7-68CE3327DAE6/MediaCreationTool.exe" |
|
-
-