Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Операционные системы » Microsoft Windows » Создание ISO-образа Windows PE 3.0, используя AIK от Windows

Модерирует : KLASS, IFkO

 Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

Открыть новую тему     Написать ответ в эту тему

AZJIO



Silver Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору

Код:
@echo off
color 3b
 
REM http://www.onestyle.com.ua/txt.php?u=585
REM http://www.wapbbs.com/bbs/archive/index.php/t-143141&goto=lastpage
 
REM Указываем файл для модификации
set "BCD-File=C:\!newBCD\BCD"
if exist %BCD-File% del %BCD-File%
Bcdedit /createstore %BCD-File%
 
Bcdedit /store %BCD-File% /create {bootmgr}
Bcdedit /store %BCD-File% /set {bootmgr} description "Windows Boot Manager"
:: Устаноить время ожидания
Bcdedit /store %BCD-File% /set {bootmgr} timeout 7
Bcdedit /store "%BCD-File%" /set {bootmgr} nointegritychecks 1
 
Bcdedit /store %BCD-File% /create {ramdiskoptions}
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice boot
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
 
:: Создаём первый пункт меню
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /application osloader') do set guid1=%%c
Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid1% detecthal Yes
Bcdedit /store %BCD-File% /set %guid1% winpe Yes
Bcdedit /store %BCD-File% /set %guid1% ems No
REM Bcdedit /store %BCD-File% /set %guid1% locale ru-ru
REM Bcdedit /store %BCD-File% /set %guid1% inherit {bootloadersettings}
REM Bcdedit /store %BCD-File% /set %guid1% path \windows\system32\boot\winload.exe
Bcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\sources\Make_PE3.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\sources\Make_PE3.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid1% description "WinPe - 260 ЊЎ"
 
:: Создаём второй пункт меню
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /application osloader') do set guid2=%%c
Bcdedit /store %BCD-File% /set %guid2% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid2% detecthal Yes
Bcdedit /store %BCD-File% /set %guid2% winpe Yes
Bcdedit /store %BCD-File% /set %guid2% ems No
REM Bcdedit /store %BCD-File% /set %guid2% locale ru-ru
REM Bcdedit /store %BCD-File% /set %guid2% inherit {bootloadersettings}
REM Bcdedit /store %BCD-File% /set %guid2% path \windows\system32\boot\winload.exe
Bcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid2% description "WinPe - 245 ЊЎ -®ў®Ґ"
 
Bcdedit /store %BCD-File% /create {ntldr} /d "Microsoft Windows XP"
Bcdedit /store %BCD-File% /set {ntldr} device partition=C:
Bcdedit /store %BCD-File% /set {ntldr} path \ntldr
 
:: Отображать 4 пункта в загрузочном меню
Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid1% %guid2% {ntldr}
 
:: Установить пункт меню по умолчанию
Bcdedit /store %BCD-File% /default %guid2%
REM Bcdedit /store %BCD-File% /default {ntldr}
pause
 
cls
Bcdedit /store %BCD-File% /enum all /v
pause

Всего записей: 4414 | Зарегистр. 03-05-2006 | Отправлено: 12:52 13-11-2010
Открыть новую тему     Написать ответ в эту тему

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Операционные системы » Microsoft Windows » Создание ISO-образа Windows PE 3.0, используя AIK от Windows


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru