Advertisement
Guest User

Untitled

a guest
Jan 6th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. монтирование образа - imagex /mountrw winpe.wim 1 mount
  2.  
  3. startnet.cmd
  4.  
  5. wpeinit
  6. net use z: \\192.168.0.1\win7 /user:install install
  7. if exist z:\sources\setup.exe (
  8. z:
  9. cd \sources
  10. setup.exe
  11. )
  12.  
  13. Размонтировать образ - imagex /unmount /commit mount
  14.  
  15. createbcd.cmd
  16.  
  17. bcdedit -createstore %1\BCD
  18. bcdedit -store %1\BCD -create {ramdiskoptions} /d "Ramdisk options"
  19. bcdedit -store %1\BCD -set {ramdiskoptions} ramdisksdidevice boot
  20. bcdedit -store %1\BCD -set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
  21. for /F "tokens=2 delims={}" %%i in ('bcdedit -store %1\BCD -create /d "MyWinPE Boot Image" /application osloader') do set guid={%%i}
  22. bcdedit -store %1\BCD -set %guid% systemroot \Windows
  23. bcdedit -store %1\BCD -set %guid% detecthal Yes
  24. bcdedit -store %1\BCD -set %guid% winpe Yes
  25. bcdedit -store %1\BCD -set %guid% osdevice ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
  26. bcdedit -store %1\BCD -set %guid% device ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
  27. bcdedit -store %1\BCD -create {bootmgr} /d "Windows BootManager"
  28. bcdedit -store %1\BCD -set {bootmgr} timeout 30
  29. bcdedit -store %1\BCD -set {bootmgr} displayorder %guid%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement