Jump to content

TheReasonIFail

Member
  • Posts

    170
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by TheReasonIFail

  1. Hi, I'm trying to create a multi-boot disc that gives me the option of loading one of three difference images of BartPE. I'm using MagicISO and I keep getting the error "No-emulation type image (raw)" So is there a way to change the emulation type on an existing iso or bin? Or is there some setting in MagicIso I need to change? Or if anyone has a detailed walkthrough of how to use MagicIso to create a multi-boot disc, I would greatly appreciate it!!
  2. Well, it seems that sysprep is screwing with the BCD. I've edited the file to be a two part install so WinPE is installed after sysprep has run on the C: drive. I'm going to work on that today. Hopefully that will work for now. @ECHO OFF SET CD=D: SET PHD=W: SET XHD=C: SET REGUID=572BCD55-FFA7-11D9-AAE0-0007E994107D GOTO MENU :MENU ECHO. ECHO What would you like to do? ECHO (Press Number followed by Enter key.) ECHO. ECHO 1. Format and image disk with Windows XP Professional ECHO 2. Install Windows Recovery Environment ECHO 3. Open A43 File Manager ECHO 4. Quit and reboot PC ECHO. :CHOICE SET /P C=[1,2,3,4,5,6,7]? IF "%C%"=="4" GOTO QUIT IF "%C%"=="3" GOTO A43 IF "%C%"=="2" GOTO WINRE IF "%C%"=="1" GOTO WINXP GOTO CHOICE :WINXP ECHO Preparing Disk for Windows Installation ECHO After imaging is complete, let sysprep complete before creating recovery partition DISKPART -S DP\PREPART.TXT REGEDIT -S VDS.REG IMAGEX /APPLY WIM\XP_SYSPREP.WIM 1 %XHD% START /WAIT WSCRIPT WIMHALDETECT.VBS WPEUTIL REBOOT :WINRE ECHO BOOTSECT.EXE /NT60 ALL IMAGEX /APPLY WIM\WINRE.WIM 1 %PHD% COPY FILES\*.* %XHD%\WINDOWS\SYSTEM32\ XCOPY %CD%\BOOT\*.* /e /f %XHD%\BOOT\ COPY %CD%\BOOTMGR %XHD% DEL %XHD%\BOOT\BCD BCDEDIT -CREATESTORE %XHD%\BOOT\BCD BCDEDIT -STORE %XHD%\BOOT\BCD -create {BOOTMGR} /d "Boot Manager" BCDEDIT -STORE %XHD%\BOOT\BCD -SET {BOOTMGR} DEVICE BOOT BCDEDIT -STORE %XHD%\BOOT\BCD -CREATE {NTLDR} /D "Windows XP" BCDEDIT -STORE %XHD%\BOOT\BCD -SET {NTLDR} DEVICE BOOT BCDEDIT -STORE %XHD%\BOOT\BCD -SET {NTLDR} PATH \NTLDR BCDEDIT -STORE %XHD%\BOOT\BCD -SET {NTLDR} LOCALE EN-US BCDEDIT -STORE %XHD%\BOOT\BCD -create {%REGUID%} /D "Backup and Restore" -APPLICATION OSLOADER BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} OSDEVICE PARTITION=%PHD% BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} DEVICE PARTITION=%PHD% BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} path \windows\system32\boot\winload.exe BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} systemroot \windows BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} winpe yes BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} detecthal yes BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} nx optin BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} custom:46000010 yes BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} LOCALE EN-US BCDEDIT -STORE %XHD%\BOOT\BCD -DEFAULT {NTLDR} BCDEDIT -STORE %XHD%\BOOT\BCD -SET {DEFAULT} RECOVERYSEQUENCE {%REGUID%} BCDEDIT -STORE %XHD%\BOOT\BCD -SET {DEFAULT} RECOVERYENABLED YES BCDEDIT -STORE %XHD%\BOOT\BCD -DISPLAYORDER {NTLDR} {%REGUID%} BCDEDIT -STORE %XHD%\BOOT\BCD -TIMEOUT 0 DISKPART -S DP\POST.TXT WPEUTIL REBOOT :A43 A43.EXE :QUIT WPEUTIL REBOOT I'm using the old choice.com file to get the prompts. Is there a way to do that with some more recent "technology"?
  3. SUCCESS!!! I've finally gotten Windows RE to work with XP and here is the script I used: @ECHO OFF SET CD=D: SET PHD=E: SET XHD=C: SET REGUID=572bcd55-ffa7-11d9-aae0-0007e994107d REGEDIT -S VDS.REG DISKPART -S PREPART.TXT BOOTSECT.EXE /NT60 All imagex /apply winre.wim 1 %PHD% COPY WINXP.WIM %PHD%\Sources\Recovery\*.* IMAGEX /APPLY %PHD%\Sources\Recovery\WINXP.WIM 1 %XHD% xcopy %CD%\boot\*.* /e /f %XHD%\boot\ copy %CD%\bootmgr %XHD% del %XHD%\BOOT\BCD Bcdedit -CREATESTORE %XHD%\BOOT\BCD BCDEDIT -STORE %XHD%\BOOT\BCD -create {BOOTMGR} /d "Boot Manager" BCDEDIT -STORE %XHD%\BOOT\BCD -SET {BOOTMGR} DEVICE BOOT BCDEDIT -STORE %XHD%\BOOT\BCD -CREATE {NTLDR} /D "Windows XP" BCDEDIT -STORE %XHD%\BOOT\BCD -SET {NTLDR} DEVICE BOOT BCDEDIT -STORE %XHD%\BOOT\BCD -SET {NTLDR} PATH \NTLDR BCDEDIT -STORE %XHD%\BOOT\BCD -create {%REGUID%} /D "Windows Recovery Environment" -APPLICATION OSLOADER BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} osdevice partition=%PHD% BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} device partition=%PHD% BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} path \windows\system32\boot\winload.exe BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} systemroot \windows BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} winpe yes BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} detecthal yes BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} nx optin BCDEDIT -STORE %XHD%\BOOT\BCD -SET {%REGUID%} custom:46000010 yes BCDEDIT -STORE %XHD%\BOOT\BCD -DEFAULT {NTLDR} BCDEDIT -STORE %XHD%\BOOT\BCD -SET {DEFAULT} RECOVERYSEQUENCE {%REGUID%} BCDEDIT -STORE %XHD%\BOOT\BCD -SET {DEFAULT} RECOVERYENABLED YES BCDEDIT -STORE %XHD%\BOOT\BCD -DISPLAYORDER {NTLDR} {%REGUID%} REM BCDEDIT -STORE %XHD%\BOOT\BCD -TIMEOUT 2 ATTRIB +R +H +S %XHD%\BOOTMGR ATTRIB +R +H +S %XHD%\BOOT\ and here are the command in prepart.txt SELECT DISK 0 CLEAN CREATE PARTITION PRIMARY SIZE=4096 ASSIGN LETTER=E: FORMAT FS=NTFS QUICK LABEL="Windows RE" SET ID=27 CREATE PARTITION PRIMARY ASSIGN LETTER=C: ACTIVE FORMAT FS=NTFS QUICK LABEL="Windows XP" SET ID=07
  4. All right, after some playing I've edited to: @ECHO OFF SET CD=D: SET PHD=W: SET XHD=C: DISKPART -S DEFAULTPART.TXT imagex /apply %CD%\sources\boot.wim 1 %PHD% imagex /apply winxp.wim 1 %XHD% xcopy %CD%\boot\*.* /e /f %PHD%\boot\ copy %CD%\bootmgr %PHD% del %PHD%\boot\bcd Bcdedit -createstore %PHD%\boot\BCD Bcdedit -store %PHD%\boot\BCD -create {bootmgr} /d "Boot Manager" Bcdedit -store %PHD%\boot\BCD -set {bootmgr} device boot Bcdedit -store %PHD%\boot\BCD -CREATE {NTLDR} /D "Windows XP" Bcdedit -store %PHD%\boot\BCD -set {NTLDR} DEVICE PARTITION=%XHD% Bcdedit -store %PHD%\boot\BCD -set {NTLDR} PATH \NTLDR Bcdedit -store %PHD%\boot\BCD -create /D "Windows PE" -APPLICATION OSLOADER notepad winpeinst.bat Bcdedit -store %PHD%\boot\BCD -set <GUID> osdevice partition=%PHD% Bcdedit -store %PHD%\boot\BCD -set <GUID> device partition=%PHD% Bcdedit -store %PHD%\boot\BCD -set <GUID> path \windows\system32\boot\winload.exe Bcdedit -store %PHD%\boot\BCD -set <GUID> systemroot \windows Bcdedit -store %PHD%\boot\BCD -set <GUID> winpe yes Bcdedit -store %PHD%\boot\BCD -set <GUID> detecthal yes Bcdedit -store %PHD%\boot\BCD -DISPLAYORDER {NTLDR} <GUID> Bcdedit -store %PHD%\boot\BCD -DEFAULT {NTLDR} Bcdedit -store %PHD%\boot\BCD -TIMEOUT 2 Now I get prompted for each entry, but choosing Windows XP, gives me the following error: File: \NTLDR Status: 0xc000000d Info: The selected entry could not be loaded because the application is missing or corrupt.
  5. OK, I'm trying to setup BCD to show WinPE and WinXP. Things aren't working too well. Here is the script I'm currently using. To me it seems that when I add the entry for XP, it overwrites the PE entry. Any and all help is appreciated. @ECHO OFF SET CD=D: SET PHD=W: SET XHD=C: DISKPART -S DEFAULTPART.TXT imagex /apply %CD%\sources\boot.wim 1 %PHD% imagex /apply winxp.wim 1 %XHD% xcopy %CD%\boot\*.* /e /f %PHD%\boot\ copy %CD%\bootmgr %PHD% del %PHD%\boot\bcd Bcdedit -createstore %PHD%\boot\BCD Bcdedit -store %PHD%\boot\BCD -create {bootmgr} /d "Boot Manager" Bcdedit -store %PHD%\boot\BCD -set {bootmgr} device boot Bcdedit -store %PHD%\boot\BCD -create /d "WINPE" -application osloader notepad winpeinst.bat Bcdedit -store %PHD%\boot\BCD -set <GUID> osdevice partition=%PHD% Bcdedit -store %PHD%\boot\BCD -set <GUID> device partition=%PHD% Bcdedit -store %PHD%\boot\BCD -set <GUID> path \windows\system32\boot\winload.exe Bcdedit -store %PHD%\boot\BCD -set <GUID> systemroot \windows Bcdedit -store %PHD%\boot\BCD -set <GUID> winpe yes Bcdedit -store %PHD%\boot\BCD -set <GUID> detecthal yes Bcdedit -store %PHD%\boot\BCD -CREATE {LEGACY} /D "Windows XP" Bcdedit -store %PHD%\boot\BCD -SET {LEGACY} DEVICE BOOT Bcdedit -store %PHD%\boot\BCD -SET {LEGACY} PATH \NTLDR Bcdedit -store %PHD%\boot\BCD -DISPLAYORDER {LEGACY} -ADDLAST
  6. Have you verified that your WinPE disc works properly on any other machines?
  7. Yeah, I too have never experienced something like this. I'm going to try recreating the image on a 3rd machine, and see how it goes.
  8. I doubt it's an issue with NTFS because reboots bring on different "problems". So I'll have issues with newdev.dll, reboot then have that work but then device manager won't load, reboot and then have other sets of problem. I used ghost to capture an image of the same sysprep'd machine and didn't notice any problem. I don't know if diskpart is still doing something funky to the disk.
  9. So, I'm trying not to use ghost to deploy my XP w/ SP2 images here at the office so I've been playing with WIM and IMAGEX. I've successfully created my sysprep'd OS and created an image of it. When I deploy it, sysprep works great, but it's afterwards that things start getting funky. I get alot of "weirdness", error messages, shortcuts not working, devices not being seen by the machine and plenty of other stuff. I recreated the image on a seperate machine and even used a different Windows disc to install with. I also used the vds.reg file that I've seen in other topics as I do run diskpart before everything begins. I'm going to do some research on IMAGEX and see what I can find. But any and all help is appreciated!
  10. I just found this in regards to the /syspart sitch for WINNT32.exe On an x86-based computer, this parameter specifies that you can copy Setup startup files to a hard disk, mark the disk as active, and then install the disk onto another computer. When you start the computer onto which you have installed the disk, it automatically starts with the next phase of Setup. You must always use the /tempdrive parameter with the /syspart parameter. I found that here.
  11. The mapped drive will only be seen from the account you mapped it. So the users will not be able to see anything you have mapped with the Administrator account.
  12. Is it possible to save an unaltered copy of the working BCD and then just import it back in once sysprep is done, but before the reboot?
  13. OK, So I admit that I haven't read all the new notes on the new AIK, but I didn't think creating a WinRE HDD partition would be much different that a WinPE HDD partition. I've got most of it down, but I can't wrap my head around the setautofailover.cmd file. Do I still need to use this if I only plan on using WinRE with XP and not Vista? Has anyone successfully created a WinRE HDD partition that is accessible via "F8"? If so, any help would be greatly appreciated!!!
  14. Actually, I downloaded it last night, but I haven't had a chance to look at it yet. Edit* Do you know if WinRE has networking capabilities?
  15. OK, So I'm trying to create an image with a hidden restore partition. Here is the layout: Partition 1: XOSL Partition 2: WinPE - set as being hidden from WinXP Partition 3: WinXP 1st: I booted up from a WinPE CD and used diskpart to create the 3 partitions. 2nd: Installed and configured XOSL on the first partition. 3rd: I installed WinPE to boot from the HDD on the second partition. 4th: Installed, configured and syspreped WinXP on third partiion. 5th: Created a wim file of the Windows XP partition on the WinPE partition, setup a batch file to format then image the 3rd partition. 6th: Quick formatted the 3rd partition. 7th: Imaged the entire drive and put it on a WinPE disk. OK, so I formatted and reimaged the entire drive. I rebooted the PC and in XOSL, I only have one option to boot from and that's the recovery partition. I checked the XOSL setup and see that the "Windows" option is disabled, I assumed this was because I had formatted the 3rd partition so I didn't think much of it. I booted into WinPE and imaged the 3rd partition. After rebooting again, the second option to boot into Windows is still disabled. It's not a real big issue I can go in there and re-enable it, but it's just a little annoying. Does anyone know what I'm doing wrong? Or is this just the way XOSL works? Thank in advance for any and all help!
  16. Well, I'm not too worried about the password, as I currently have it saved on my BartPe disc. The reason I don't worry is because the account "BartPE" only has read/write permissions to the folder with the image. This account has no other rights on anything else. It's not even part of the users group.
  17. OK, The "InstallFilesPath" only tells sysprep where to look for the Windows install files, in case some are needed during the mini-setup. This has nothing to do with the drivers. The "OemPnpDriversPath" should be the actual path to the drivers. In my sysprep build, my drivers are in C:\Sysprep\D\* so my "OemPnpDriversPath" looks like this: OemPNPDriversPath=c:\sysprep\d\a\1;c:\sysprep\d\a\2;c:\sysprep\d\a\3; etc...
  18. This is a sweet little app you have but is there any way we can have this run from the command prompt? I currently have a BartPE CD that loads network drivers, maps a drive to the share that has the image, loads the image on to the HDD and reboots without any intervention aside from me "pressing any key to boot from cd". I love the fact that BartPE can map a network drive that requires a username/password without me having to enter it. Now if I can find something similar in WinPE, I'll be super happy!!
  19. I found this script to be very helpful in my attempt to create an all-in-one Windows image. Here is how I went about getting it all to work: 1. Create BartPE from Windows 2003 w/ SP1 source. 2. Enable RpcSS DComLaunch PlugIn. In addition, the DcomLaunch.Inf file needs to be modified in that Addreg.2600 section needs to be renamed into Addreg.3790 section 3. Add the following to custom.inf: [sourceDisksFiles] vssapi.dll=2 4. Create a batch file that re-images the PC, runs diskpart and then the vbs. (For some reason, diskpart needs to run before the vbs in order for it to work, but with the batch file, it's not a big deal!) I setup my bartpe disc to start and autorun the batch file that images the pc, runs diskpart and runs the hal script and restarts. Makes my life so much easier. After doing this, I was able to successfully reimage the machine and run the vbs script.
×
×
  • Create New...