Everything on drive C: will be included in captured install.wim
file. Before capturing it for my custom recovery partition, I have a routine to make resulting WIM file as small as possible. Here's what I do on every machine, every time:
- Completely empty user profile folders (Documents, Pictures, Videos, Music, do not touch AppData folder!), backing all personal data to an external disk.
- Unlink OneDrive (tutorial), when unlinked delete everything in OneDrive folder.
- Run full Disk Cleanup (tutorial, see Option Two) selecting absolutely everything there is to clean / remove.
When WIM file is then captured, I'll link OneDrive again and copy backed up personal files back to user profile folders.