Remove multiple indexes with dism

Hello,


I downloaded the ISO image of windows 11 multi edition. I want to keep the first index which is Windows 11 Home.


I use the following command : dism /delete-image /imagefile:"f:\media\fr\sources\install.wim" /index:2 /checkintegrity


So I must to execute this command 10 times.


Is it possible with dism to delete all 10 indexes at once?


Do you have an example with a batch script?


Thanks.

Answer
Answer

Hi,

I'd rather extract the image index#1 to a separate WIM file and discard the original Install.wim.

For example, the multi-edition WIM has this:

Details for image : install.wim 
 
Index : 1 
Name : Windows 11 Home 
Description : Windows 11 Home 
Size : 15,854,479,870 bytes 
 
Index : 2 
Name : Windows 11 Home N 
Description : Windows 11 Home N 
Size : 15,170,988,662 bytes 
 
Index : 3 
Name : Windows 11 Home Single Language 
Description : Windows 11 Home Single Language 
Size : 15,857,403,299 bytes 
 
Index : 4 
Name : Windows 11 Education 
Description : Windows 11 Education 
Size : 16,136,983,252 bytes 
 
Index : 5 
Name : Windows 11 Education N 
Description : Windows 11 Education N 
Size : 15,450,067,990 bytes 
 
Index : 6 
Name : Windows 11 Pro 
Description : Windows 11 Pro 
Size : 16,134,043,048 bytes 
 
Index : 7 
Name : Windows 11 Pro N 
Description : Windows 11 Pro N 
Size : 15,447,756,461 bytes 
 
Index : 8 
Name : Windows 11 Pro Education 
Description : Windows 11 Pro Education 
Size : 16,136,934,462 bytes 
 
Index : 9 
Name : Windows 11 Pro Education N 
Description : Windows 11 Pro Education N 
Size : 15,450,018,300 bytes 
 
Index : 10 
Name : Windows 11 Pro for Workstations 
Description : Windows 11 Pro for Workstations 
Size : 16,136,958,857 bytes 
 
Index : 11 
Name : Windows 11 Pro N for Workstations 
Description : Windows 11 Pro N for Workstations 
Size : 15,450,043,145 bytes

I run:

Dism /Export-Image /SourceImageFile:"D:\sources\install.wim" /SourceIndex:1 /DestinationImageFile:"D:\sources\home.wim"

Home.WIM Index

===========

D:\sources>dism /get-imageinfo /imagefile:home.wim 
 
Deployment Image Servicing and Management tool 
Version: 10.0.19041.844 
 
Details for image : home.wim 
 
Index : 1 
Name : Windows 11 Home 
Description : Windows 11 Home 
Size : 15,854,479,870 bytes 
 
The operation completed successfully. 

Now, delete Install.wim from your setup disk. And, rename Home.wim to Install.wim.

______________________________________________________________________________________________________
Ramesh, Windows Shell MVP 2003-2012.
If this post resolves your issue, pls mark it as an Answer.

14 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 22, 2025 Views 7,050 Applies to: