Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, December 21, 2017 6:19 AM
I have captured image of a system with Windows 10 OS using DISM /Capture-Image command. I want to check the integiry of the image captured using DISM. I want to check the file integrity independently and not when the image is captured or applied. Command could be something like this:
DISM /ImageFile:<provide .wim file path> /CheckIntegrity, but not sure this works.
Any thoughts?
Thanks
CorYos
All replies (7)
Friday, December 22, 2017 2:49 AM | 1 vote
Hi CorYos,
The parameter you found is correct, /CheckIntegrity is used for Detecting and tracking .wim file corruption when used with capture, unmount, export, and commit operations.
Try the following syntax:
Dism /Capture-Image /ImageFile:<path_to_image_file> /CaptureDir:<source_directory> /Name:<image_name> [/Description:<image_description>]
[/ConfigFile:<configuration_file.ini>] {[/Compress:{max|fast|none}] [/Bootable] | [/WIMBoot]} [/CheckIntegrity]
* *
Notice the part of /Capture-Image
If you have captured a image and customized it, only want to check integrity, I am afraid that operation will be non effective, because /ImageFile is just a path and /CheckIntegrity is just a parameter, which don't including specific behavior. Maybe you could mount customized wim and add this parameter:
Dism /Mount-Image /ImageFile:<path_to_image_file> {/Index:<image_index> | /Name:<image_name>} /MountDir:<path_to_mount_directory> [/Optimize] [/CheckIntegrity]
Regards
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, December 22, 2017 5:53 AM
Thanks Teemo. I may have to try Mount-Image.
CorYos
Friday, December 22, 2017 6:01 AM
You are welcome, I am happy to assist you.
Please mark the reply to close this case, thank you for understanding and sharing.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, December 22, 2017 8:20 AM
Hi Teemo,
I captured image using /CheckIntegrity as mentioned. The .wim file I deleted, and created a new .wim just to test the integrity of the file. While applying the image using /Apply-Image, I gave the path of this new .wim file and gave /CheckIntegrity. The command prompt showed operation completed successfully instead of throwing error.
So how do I test if /CheckIntegrity really works or not?
CorYos
Friday, December 22, 2017 9:46 AM
>>The command prompt showed operation completed successfully instead of throwing error.
This situation means the image you captured is intact.
>>test if /CheckIntegrity really works?
I am sorry i don't know a way to achieve it. Facts speak louder than words, once your image works fun after deploy, it means integrity of image is helathy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, December 26, 2017 9:02 AM
Would you mind letting me know the update of the problem? If you need further assistance, feel free to let me know.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, December 26, 2017 9:08 AM
No, my problem did not solve yet. I am trying other ways to validate the image i.e. using utilities to find the hash values.
CorYos