ManagedWimgApi icon indicating copy to clipboard operation
ManagedWimgApi copied to clipboard

Anyway of using this to capture a drive which is in use e.g. C:\

Open PCAssistSoftware opened this issue 6 years ago • 3 comments

Hi, does anyone know a way I could use this to capture a drive that is in use e.g. my windows drive C:

I know I can boot into PE and do it, but some imaging tools can backup a live system, and I would like to be able to do it with this?

Had though I could create a shadow using something like AlphaVSS (https://github.com/alphaleonis/AlphaVSS)

I know in Windows 10 itself I can go to Control Panel\System and Security\Back up and Restore (Windows 7) > Create a system image and it will do it live - and looks like that uses DISM to do it?

Thanks

PCAssistSoftware avatar Jan 24 '19 15:01 PCAssistSoftware

I don't think WIM allows this. You might be able to do it with a VHDX

https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd

jeffkl avatar Feb 02 '19 19:02 jeffkl

Thanks Jeff, hadn't thought of that - hopefully I can find a wrapper or API so I can use it in my app in same way I do with DISM and WIMG

PCAssistSoftware avatar Feb 02 '19 19:02 PCAssistSoftware

Yes, but there's a catch. Just like any software that wants to make a backup of files in use, you have to use the Volume Shadow Service to create a snapshot, mount the snapshot, and then you capture from the mounted snapshot. VSS isn't the funnest api to work with.

jonmiller1 avatar May 15 '24 04:05 jonmiller1