Tripredacus Posted November 19, 2008 Posted November 19, 2008 C:\winpe_x86\mount\Windows\System32\winpe.bmp^---- thats the path after mounting winpe.wim to c:\winpe_x86\mount.
ner Posted November 20, 2008 Author Posted November 20, 2008 VBScript will not lad I get "Access Denied" error message, runs ok under vista but not Winpe 2.0Does anyone know what I need to do.I have installed the following packs:peimg /install=WinPE-WMI-Package c:\PE\winpe_x86\mount\Windowspeimg /install=WinPE-HTA-Package c:\PE\winpe_x86\mount\Windowspeimg /install=WinPE-MDAC-Package c:\PE\winpe_x86\mount\Windowspeimg /install=WinPE-Scripting-Package c:\PE\winpe_x86\mount\Windowspeimg /install=WinPE-XML-Package c:\PE\winpe_x86\mount\Windows
TheReasonIFail Posted November 20, 2008 Posted November 20, 2008 Are you able to run the vbs script is you double-click it?
IcemanND Posted November 20, 2008 Posted November 20, 2008 Can you post your code, then we could try it and see what else may be going on?
ner Posted November 20, 2008 Author Posted November 20, 2008 here is my code:wscript.sleep(2000)set objscripting = wscript.createobject("wscript.shell")set FSO = createobject ("scripting.filesystemobject")set coldrives = FSO.drivesfor each objdrive in coldrivesif objdrive.drivetype=4 thendriveletter=objdrive.driveletteranswer=MsgBox("Please ensure that you have all data backed up before running System Recovery Kit as this process will restore the PC to the build date that you are recovering. Any software and or updates installed after this build date will need to be reinstalled after recovery has finished. ",4,"System Recovery Kit Important Message!")if answer =6 thenwscript.echo("You now need to place the first DVD of the recovery media into the "&objdrive&" DVD/CDRom drive - System Recovery Kit will ask you to change the DVD as required to complete the recovery process")objscripting.run("cmd /c start RECOVERY32.EXE -clone,MODE=restore,SRC="&driveletter&":\IMAGE.GHO,dst=1 -sure -quiet -span -FX") end ifend ifNext
ner Posted November 21, 2008 Author Posted November 21, 2008 (edited) Created my Winpe 2.0 cd with allpacks required with no problems.Within the mount location:Created Dir "Programs" and copied to this location:Recovery.exeExplorerxp.exeSpan.bmpRecovery.VBSupdated startnet.cmd to run the Recovery.VBS filecall %SYSTEMDRIVE%\Programs\Recover.VBSDoes not work, However manually trying to start the Recover.VBS file I get "Access denied", so I guess it will not work.Does anyone know how I can find the CD/DVD drive letter and then run Recovery.exe (which is Ghost 11.5 customed), can i just create a cmd file to do this? Edited November 21, 2008 by ner
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now