Page 1 of 1

VSS in WinPE 3.0

PostPosted: Mon May 09, 2011 3:47 pm
by JFX
I always thought VSS can not work in PE mode, but then found joakim's post about VSS in Moa (Win2003 PE).

It's not really different to add it in PE3.0.

Let's use a MakePE3 build

- make sure you have all following files (+ .mui) in your WinPE system32 folder

Code: Select all
es.dll
eventcls.dll
swprv.dll
vssadmin.exe
vss_ps.dll
vssapi.dll
vsstrace.dll
VSSVC.exe
xolehlp.dll


If you use an x64 PE add the respected x86 version in the syswow64 folder.

Now to simplify all, let's alter all UNICODE occurs of MININT and SystemSetupInProgress (to MININX and SystemSetupInProgrest) inside next 3 files:

Code: Select all
vssadmin.exe
vssapi.dll
VSSVC.exe


The good thing, we have in MakePE3 already the whole classes key of a full Windows7, so only left is the EventSystem service :D

load Winpe system and software hive, and apply this reg file

that's all :)

BTW: Some programs may not start the services automatically, so in case you get an error start them manually

Code: Select all
net start eventsystem
net start swprv
net start vss

Also keep in mind VSS needs at least 1 NTFS partiton, the one from boot.sdi does not count.

Image

Re: VSS in WinPE 3.0

PostPosted: Mon May 09, 2011 7:21 pm
by joakim
So MS actually made an effort in preventing the service to run i PE-mode.. Nice find (I never really struck me that this could be the issue).

As I do not currently have the time to test this, is it verified that the service runs correctly? Have you tried working on shadow copies, or issued "vssadmin list writers"?

Re: VSS in WinPE 3.0

PostPosted: Mon May 09, 2011 7:42 pm
by JFX
Yes, the service is working.

So far I tried Paragon Drive Backup with VSS option and Disk2VHD, both working. Also vssadmin show no error.

Image

Re: VSS in WinPE 3.0

PostPosted: Thu Jun 23, 2011 7:15 pm
by vvurat
Nice find and good work. I can not wait to check it. ;)

http://i760.photobucket.com/albums/xx243/liliactr/vss.jpg

I think this means it work? I haven't need any to use it.

Re: VSS in WinPE 3.0

PostPosted: Thu Jul 07, 2011 8:18 pm
by JFX
he he,
my turkish isn't very good, but yeah if in show State[1] stable it's good sign ;)

Really be sure, you can only after successfully snapshotting a volume, for example with that very picky disk2vhd tool.

I agree that there is no much use in WinPE, but sadly same developers let their app's require VSS, even if it would not be necessary :(

Image

Re: VSS in WinPE 3.0

PostPosted: Fri Jul 08, 2011 1:23 am
by vvurat
there is no "system writer" in the list. is it important or usefull or possible?