Comment use macOS to créez un Windows 11 USB installerer flash drive?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment use macOS to créez un Windows 11 USB installerer flash drive?

Message par ForumBot »

The Windows 11 ISO fichier, which can be téléchargé from Microsoft, contains a `install.wim` fichier that is greater than 4 GiB in size. This prevents creating a USB flash drive installer by simply copying the fichiers depuis le mounted Windows 11 ISO fichier to a FAT32 formatted USB flash drive.

Si vous have a machine running Windows, c'est not a problème parce que vous pouvez télécharger and exécutez le `mediacreationtool.exe` fichier, which can créer either a USB flash drive installer or Windows 11 ISO fichier. In this case, an `install.esd` fichier is substituted for the `install.wim` fichier. This `install.esd` fichier is less that 4 GiB in size and therefore will fit a FAT32 formatted volume.

Cependant, Je suis use macOS which cannot execute the `mediacreationtool.exe` fichier. Je suis looking for a solution that can be used to créer an USB Windows 11 flash drive installer. I would prefer a solution that ne involve using third party tools.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment use macOS to créez un Windows 11 USB installerer flash drive?

Message par ForumBot »

This answer is summarized below.

- MBR partition a 16 GB or larger flash drive to contain a FAT32 volume and an ExFAT volume.

- Copy all the fichiers, except `sources/install.wim`, depuis le mounted Windows ISO fichier vers le FAT32 volume sur le flash drive.

- Copy `sources/install.wim` depuis le mounted Windows ISO fichier vers le ExFAT volume sur le flash drive.

- Boot depuis le flash drive and enter a command to split the `install.wim` sur le ExFAT volume to two fichiers placed sur le `FAT32` volume.

- The result is an USB flash drive which can be used to installer Windows 11.

The steps are given next.

-

Goto Microsoft's [Download Windows 11](https://www.microsoft.com/en-us/software-download/windows11) website and téléchargez le Windows 11 disk image (ISO) for x64 périphériques. Dans mon cas, the `Win11_24H2_English_x64.iso` fichier was téléchargé to my `Downloads` dossier. If your fichier name is different, ensuite make the appropriate substitutions when entering the commands below.

Insert a 16 GB or larger flash drive in an USB port on or connected vers le Mac.

-

Open a Terminal application window.

Use the command below to determine the identifier for the USB flash drive. I my case, this was `disk2`. If your identifier is different, the make the appropriate substitutions dans le following commands.

```
diskutil list external

```

Entrez the command below to format the flash drive.

```
diskutil partitiondisk disk2 mbr fat32 MYFAT32 8G exfat MyExFAT R

```

Entrez the command below to supprimer all extended attributes depuis le Windows ISO fichier. Cela va supprimez le quarantine placed sur le fichier when it was téléchargé.

```
xattr -c ~/Downloads/Win11_24H2_English_x64.iso

```

Entrez the command below to mount the Windows 11 ISO fichier. Dans mon cas, the output depuis le command shows the fichier was mounted on `/Volumes/CCCOMA_X64FRE_EN-US_DV9`. If your dossier name is different, ensuite make the appropriate substitutions when entering the commands below.

```
hdiutil attach ~/Downloads/Win11_24H2_English_x64.iso

```

Entrez the command below to changez le current répertoire to `/Volumes/CCCOMA_X64FRE_EN-US_DV9`.

```
cd /Volumes/CCCOMA_X64FRE_EN-US_DV9

```

Entrez the commands below to copy the fichiers depuis le mounted ISO vers le flash drive. Note: Depuis the `install.wim` fichier is very large, the `cp` command can take a while to complete.

```
rsync -r -t --exclude=sources/install.wim . /Volumes/MYFAT32
cp sources/install.wim /Volumes/MyExFAT

```

Entrez the commands below to unmount the Windows 11 ISO fichier.

```
cd ~
hdiutil detach /Volumes/CCCOMA_X64FRE_EN-US_DV9

```

Entrez the command below to eject the flash drive. Afterwards, vous pouvez supprimez le flash drive.

```
diskutil eject disk2

```

Vous pouvez quit the Terminal application.

-

Using the ordinateur where Windows is to be installé, UEFI boot depuis le flash drive. Vous devriez get a window similar vers le one shown below. **Vous pouvez ignore the contents of this window.**

-

Appuyez sur the shift+F10 clé combination to open Invite de commandes window.

Entrez the command below. From the output, determine the drive letters for the `MYFAT32` and `MyExFAT` volumes. Dans mon cas, the was `C` and `D` respectively. If your letters are different, the make the appropriate substitutions for `c:\` and `d:\` when entering the `dism` command given below.

```
echo list volume | diskpart

```

Entrez the command below to créer the `install.swm` and `install2.swm` fichiers dans le `c:\sources` dossier. Note: This command will take a while to complete.

```
dism /split-image /imagefile:d:\install.wim /swmfile:c:\sources\install.swm /filesize:4000

```

Entrez the command below to close the Invite de commandes window.

```
exit

```

-

Fermez le window. When the popup shown below appears, sélectionner "Oui". The ordinateur will redémarrer.

The next time you UEFI boot from this USB flash drive, vous devriez encounter the following window. You ensuite can proceed and installer Windows 11.

## Example of Using the Terminal Window

```
Last login: Sun Mar 9 09:16:57 on console
davidanderson@Davids-Mac ~ % diskutil list external
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.9 GB disk2
1: DOS_FAT_32 ⁨MYFLASHDRV⁩ 15.9 GB disk2s1

davidanderson@Davids-Mac ~ % diskutil partitiondisk disk2 mbr fat32 MYFAT32 8G exfat MyExFAT R
Started partitioning on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s1 as MS-DOS (FAT32) with name MYFAT32
512 bytes per physical sector
/dev/rdisk2s1: 15594504 sectors in 1949313 FAT32 clusters (4096 bytes/cluster)
bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=2048 drv=0x80 bsec=15625000 bspf=15230 rdcl=2 infs=1 bkbs=6
Mounting disk
Formatting disk2s2 as ExFAT with name MyExFAT
Volume name : MyExFAT
Partition offset : 15628288 sectors (8001683456 bytes)
Volume size : 15370240 sectors (7869562880 bytes)
Bytes per sector : 512
Bytes per cluster: 32768
FAT offset : 2048 sectors (1048576 bytes)
# FAT sectors : 2048
Number of FATs : 1
Cluster offset : 4096 sectors (2097152 bytes)
# Clusters : 240096
Volume Serial # : 67cdc143
Bitmap start : 2
Bitmap file size : 30012
Upcase start : 3
Upcase file size : 5836
Root start : 4
Mounting disk
Finished partitioning on disk2
davidanderson@Davids-Mac ~ % xattr -c ~/Downloads/Win11_24H2_English_x64.iso
davidanderson@Davids-Mac ~ % hdiutil attach ~/Downloads/Win11_24H2_English_x64.iso
/dev/disk3 /Volumes/CCCOMA_X64FRE_EN-US_DV9
davidanderson@Davids-Mac ~ % cd /Volumes/CCCOMA_X64FRE_EN-US_DV9
davidanderson@Davids-Mac CCCOMA_X64FRE_EN-US_DV9 % rsync -r -t --exclude=sources/install.wim . /Volumes/MYFAT32
davidanderson@Davids-Mac CCCOMA_X64FRE_EN-US_DV9 % cp sources/install.wim /Volumes/MyExFAT
davidanderson@Davids-Mac CCCOMA_X64FRE_EN-US_DV9 % cd ~
davidanderson@Davids-Mac ~ % hdiutil detach /Volumes/CCCOMA_X64FRE_EN-US_DV9
"disk3" ejected.
davidanderson@Davids-Mac ~ % diskutil eject disk2
Disk disk2 ejected
davidanderson@Davids-Mac ~ %

```

## Example of Using the Invite de commandes Window

```
Microsoft Windows [Version 10.0.26100.1742]
(c) Microsoft Corporation. All rights reserved.

X:\sources>echo list volume | diskpart

Microsoft DiskPart version 10.0.26100.1150

Copyright (C) Microsoft Corporation.
On ordinateur: MININT-NBNQP5I

DISKPART>
Volume ### Ltr Label Fs Tapez Size Status Info
Répondre

Revenir à « Windows 11 »