Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- монтирование образа - imagex /mountrw winpe.wim 1 mount
- startnet.cmd
- wpeinit
- net use z: \\192.168.0.1\win7 /user:install install
- if exist z:\sources\setup.exe (
- z:
- cd \sources
- setup.exe
- )
- Размонтировать образ - imagex /unmount /commit mount
- createbcd.cmd
- bcdedit -createstore %1\BCD
- bcdedit -store %1\BCD -create {ramdiskoptions} /d "Ramdisk options"
- bcdedit -store %1\BCD -set {ramdiskoptions} ramdisksdidevice boot
- bcdedit -store %1\BCD -set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
- for /F "tokens=2 delims={}" %%i in ('bcdedit -store %1\BCD -create /d "MyWinPE Boot Image" /application osloader') do set guid={%%i}
- bcdedit -store %1\BCD -set %guid% systemroot \Windows
- bcdedit -store %1\BCD -set %guid% detecthal Yes
- bcdedit -store %1\BCD -set %guid% winpe Yes
- bcdedit -store %1\BCD -set %guid% osdevice ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
- bcdedit -store %1\BCD -set %guid% device ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
- bcdedit -store %1\BCD -create {bootmgr} /d "Windows BootManager"
- bcdedit -store %1\BCD -set {bootmgr} timeout 30
- bcdedit -store %1\BCD -set {bootmgr} displayorder %guid%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement