Jump to content

Recommended Posts


Posted

VBScript will not lad I get "Access Denied" error message, runs ok under vista but not Winpe 2.0

Does anyone know what I need to do.

I have installed the following packs:

peimg /install=WinPE-WMI-Package c:\PE\winpe_x86\mount\Windows

peimg /install=WinPE-HTA-Package c:\PE\winpe_x86\mount\Windows

peimg /install=WinPE-MDAC-Package c:\PE\winpe_x86\mount\Windows

peimg /install=WinPE-Scripting-Package c:\PE\winpe_x86\mount\Windows

peimg /install=WinPE-XML-Package c:\PE\winpe_x86\mount\Windows

Posted

here is my code:

wscript.sleep(2000)
set objscripting = wscript.createobject("wscript.shell")
set FSO = createobject ("scripting.filesystemobject")
set coldrives = FSO.drives
for each objdrive in coldrives
if objdrive.drivetype=4 then
driveletter=objdrive.driveletter
answer=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 then
wscript.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 if
end if
Next

Posted (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.exe

Explorerxp.exe

Span.bmp

Recovery.VBS

updated startnet.cmd to run the Recovery.VBS file

call %SYSTEMDRIVE%\Programs\Recover.VBS

Does 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 by ner

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...