Restore Partition

  • Thread starter Thread starter Sean Horvath
  • Start date Start date
S

Sean Horvath

Does anyone know if there is a way to create a restore partition within XPe,
or if it is legal to do this? Instead of sending restore CDs it would be
much easier with a partition.

Thanks,
Sean.
 
Sean,
I would use the WMI for this; To set the restore point try this:
'use WMI moniker and SystemRestore class
set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
CSRP = SRP.createrestorepoint ("Factory Setting", 0, 100)

To enumerate your restore point try this:
set SRP = getobject("winmgmts:\\.\root\default").InstancesOf
("systemrestore")
for each Point in SRP
msgbox point.creationtime & vbcrlf & point.description & vbcrlf & "Sequence
Number= " & point.sequencenumber
next

and to call a restore point try this:
set SRP = getobject("winmgmts:\\.\root\Default:SystemRestore")
eSRP = SRP.Restore(SPECIFY_A_POINT) 'parameter passed is the sequence
number of the restore point you want to roll back to.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer &
"\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next


The restore location is mapped to the system drive and I don't know if there
is a way to change the location; perhaps the path is in the registry, but
you will have to verify that on your own. At any rate, I hope this helps.

Regards,

Sean Gahan
 
Hi Sean,

I cannot tell you if that's legal, but why should not be ? We have the same
situation and I hope its not a problem. My solution: I have a bootable
El-Torito CD with a very small Win XPE and on the CD I have the real Image.
The customer gets a computer with all image & programs installed on HDD and
mentioned CD. If there is a crash, he boots from CD and copy all the Image
files on the HDD, then he works only from HDD (the data is backed up on
another way).
Maybe somone from MS read this and can give us an official statement.

Regards,
Emanuil
 
Thanks for information on this. I will give it a shot and see what happens.

Sean.
 
Back
Top