Share via

Remove multiple indexes with dism

Anonymous
2022-09-27T19:26:18+00:00

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.

Windows for home | Windows 11 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2022-09-28T18:12:22+00:00

    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.

    10+ people found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Don Varnau 19,780 Reputation points Volunteer Moderator
    2022-09-29T09:38:51+00:00

    Thanks a lot for this method.


    • OR.

    Please mark the post by Ramesh Srinivasan as the Answer. A moderator could mark it but it's preferred, for statistical purposes, that you mark it.

    Thanks,

    Don

    1 person found this answer helpful.
    0 comments No comments
  2. Ramesh 176.1K Reputation points Volunteer Moderator
    2022-09-29T04:23:11+00:00

    You're welcome.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-09-27T20:11:50+00:00

    Hi, my name is Jose, a Windows user like you. I'll be happy to assist you with this issue.

    Sorry to hear you're experiencing this issue.

    Please try to use the following sentence:

    FOR /L %i IN (1,1,10) DO (dism /delete-image /imagefile:"f:\media\fr\sources\install.wim" /index:%i /checkintegrity)

    Please let me know if you need any further assistance.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2022-09-28T18:00:17+00:00

    When I use the command : dism /get-imageinfo /imagefile:"x:\media\en\sources\install.wim"

    I get the following result :

    1 Windows 11 Home
    2 Windows 11 Home N
    3 Windows 11 Home Single Language
    4 Windows 11 Education
    5 Windows 11 Education N
    6 Windows 11 Pro
    7 Windows 11 Pro N
    8 Windows 11 Pro Education
    9 Windows 11 Pro Education N
    10 Windows 11 Pro for Workstations
    11 Windows 11 Pro for Workstations N

    By using the command : FOR /L %%i (1,1,10) DO (dism /delete-image /imagefile:"f:\media\en\sources\install.wim" /index:%%i /checkintegrity)

    Only the indexes from 6 to 11 are deleted.

    1 Windows 11 Home
    2 Windows 11 Home N
    3 Windows 11 Home Single Language
    4 Windows 11 Education
    5 Windows 11 Education N

    I want to delete the indexes from 2 to 11 while keeping the first one.

    Thanks.

    0 comments No comments