Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I'm capturing an image with imagex.exe /capture ..., does it matter if I defrag the hard disk prior to doing so (or strictly speaking, before sysprep)? Is there any benefit to doing so with a file-based imager like this? Would there be any benefit to defragging after applying the image?

I am asking about defragging non-SSD drives. I believe defragging an SSD is generally considered a no-no.

share|improve this question
up vote 7 down vote accepted

No, you don't need to. Imagex.exe creates a WIM file which is a file-based disk image. It's not a disk clone so it won't take into account the way the disk space is used or where the free space is.

Same goes for applying the image to a machine - I doubt you would need to defrag.

On the flip side, defragging is definitely recommended when capturing block level images using Ghost or SCVMM P2V.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.