Skip to content

MediaCreationTool.bat

Batch script that wraps Microsoft's Media Creation Tool to build Windows 10/11 install media, with upgrade and

Stars
10.3k
Forks
3.1k
Licence
MIT
Language
Batchfile
Last update
2.2 years ago
Type
Dev tool

No commits in over a year — check for forks or alternatives before adopting.

What it is

This is a Windows batch script that drives Microsoft's Media Creation Tool so you can create Windows 10 or 11 installation media (USB or ISO) with preset options. It can also set up an in-place upgrade that tries to keep your files and apps, and it can skip some Windows 11 setup checks. The README describes it as covering versions from 1507 to 21H2.

  • Create a Windows 10 or 11 ISO from the current folder using a chosen edition, language, and architecture
  • Run an in-place upgrade that tries to keep files and apps when the OS edition differs from the media
  • Prepare a USB drive with install media by selecting the drive in the GUI
  • Add $OEM$/$ISO$ branding or configuration content to the created media

Great for

  • Windows users who want to build install media for a specific edition, language, or architecture
  • IT staff upgrading PCs where the installed edition differs from the media edition
  • People who want Windows 11 setup to skip the TPM and other hardware checks, as described in the README
  • Users whose Media Creation Tool launches have failed and who want an alternative route

Not ideal for

  • Anyone who wants an officially supported Microsoft process, since this wraps Microsoft's tool and changes its setup behavior
  • Users who prefer a fully automated USB build, because the README says USB target selection is manual for data safety
  • People who do not want to modify installation media or bypass Windows 11 requirements
Step-by-step guide: how to use MediaCreationTool.batInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Clone and build from source

    You'll need: Windows 10 or 11 (the script is a Windows batch file)

    Clone the repository

    git clone https://github.com/AveYo/MediaCreationTool.bat
  2. 2

    Run it

    • Download MediaCreationTool.bat from the repository (or clone it).
    • Run the script; it will ask for administrator rights itself, per the changelog.
    • Choose a preset such as Auto ISO or Select in the GUI.
    • Wait for the Media Creation Tool to finish and check the output folder (the script folder, or C:\ESD if run from a zip).
  3. 3

    Get the most out of it

    • Rename the script with options such as 'auto 21H2 Pro MediaCreationTool.bat' to set version and edition without prompts, as the README describes.
    • Add 'no_update' to the script name to troubleshoot a failing upgrade.
    • Add 'def' to the script name to keep the media untouched, per the README.
    • Place $ISO$ content in the folder next to the script to include it on the media.

Downloads

Strengths

  • Offers several presets (Auto Upgrade, Auto ISO, Auto USB, Select, MCT Defaults) for different needs
  • The README documents the script name and argument options in detail, so behavior is customizable
  • Has a long changelog and a large user following, with 10,340 stars and an MIT license

Trade-offs

  • It modifies created media (for example patching winsetup.dll and writing AutoUnattend.xml), which the README itself lists as changes to the media
  • Windows 11 bypass features are a policy and support risk and are not endorsed by Microsoft
  • The README is truncated and long, so some steps and requirements are not fully clear from this text

How it compares

ProjectStarsTypeLevelUpdatedBest for
MediaCreationTool.bat (this)10.3kDev toolintermediate2.2 years agoWindows users who want to build install media for a specific edition, language, or architecture
Win11Debloat61.5kCLIbeginner5 days agoPeople setting up a new Windows PC who want fewer preinstalled apps and less promotional content
windows54kDev toolintermediate29 days agoPeople who need a Windows environment on a Linux server or PC without installing Windows directly
quickemu16.6kDev toolbeginner8 days agoPeople who want to try a Linux distribution without manual QEMU configuration
SpotX23.1kDev toolbeginner5 days agoWindows users of the official Spotify desktop app who want to remove ads
wasmer21.2kDev toolintermediate4 days agoDevelopers who want to run untrusted or third-party code with explicit access controls

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.