創作內容

0 GP

好想打電動

作者:QooOGC│2015-11-11 09:37:30│巴幣:0│人氣:450
其實我很好奇 push button reset 我這樣做Win10 Win8 Ok , 但 Win8.1不行.
Win 10 後 reagentc 改了部份 , 現在O.S內建 , 變的比較簡單了?

@echo # Version 20151104-v1#
@echo off
diskpart /s listvol.txt>vol.txt
for /F "skip=7 tokens=1,2,3,4,5,6,7 delims= " %%a in (vol.txt) do echo %%a %%b = %%g >> sort1.txt
for /F "tokens=1,2,3,4 delims= " %%a in (sort1.txt) do (if %%d==No set vol=%%b)
diskpart /s remove.txt
del sort1.txt
:RC
if exist c:\USB set USB=c:
if exist d:\USB set USB=d:
if exist e:\USB set USB=e:
if exist f:\USB set USB=f:
if exist g:\USB set USB=g:
if exist h:\USB set USB=h:
if exist i:\USB set USB=i:
if exist j:\USB set USB=j:
if exist k:\USB set USB=k:
if exist l:\USB set USB=l:
diskpart /s %USB%\f1.txt
%USB%\DISM64\DISM.exe /Apply-Image /ImageFile:%USB%\p1.wim /Index:1 /ApplyDir:o:\
copy %USB%\p2.wim O:
copy %USB%\p4.wim O:
%USB%\DISM64\DISM.exe /Apply-Image /ImageFile:o:\p2.wim /Index:1 /ApplyDir:p:\
%USB%\DISM64\DISM.exe /Apply-Image /ImageFile:o:\p4.wim /Index:1 /ApplyDir:q:\
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {bootmgr} device partition=p:
bcdedit /store p:\EFI\Microsoft\boot\bcd /create {cbd971bf-b7b8-4885-951a-fa03044f5d72} /application osloader
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} device ramdisk=[o:]\st\Boot.wim,{cbd971bf-b7b8-4885-951a-fa03044f5d73}
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} path \windows\system32\winload.efi
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} description WinRE
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} osdevice ramdisk=[o:]\st\Boot.wim,{cbd971bf-b7b8-4885-951a-fa03044f5d73}
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} systemroot \windows
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} nx OptIn
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} detecthal Yes
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} winpe Yes
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {default} device partition=q:
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {default} osdevice partition=q:
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {memdiag} device partition=o:
bcdedit /store p:\EFI\Microsoft\boot\bcd /create {cbd971bf-b7b8-4885-951a-fa03044f5d73} /d "xQx" /device
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d73} ramdisksdidevice partition=o:
bcdedit /store p:\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d73} ramdisksdipath \sources\boot.sdi
bcdedit /store p:\EFI\pro\boot\bcd /set {bootmgr} device partition=p:
bcdedit /store p:\EFI\pro\boot\bcd /set {11111111-1111-1111-1111-111111111111} ramdisksdidevice partition=o:
bcdedit /store p:\EFI\pro\boot\bcd /set {11111111-1111-1111-1111-111111111111} ramdisksdipath \sources\boot.sdi
bcdedit /store p:\EFI\pro\boot\bcd /set {default} device ramdisk=[o:]\st\boot.wim,{11111111-1111-1111-1111-111111111111}
bcdedit /store p:\EFI\pro\boot\bcd /set {default} path \Windows\System32\winload.efi
bcdedit /store p:\EFI\pro\boot\bcd /set {default} locale en-US
bcdedit /store p:\EFI\pro\boot\bcd /set {default} displaymessage "Recovery"
bcdedit /store p:\EFI\pro\boot\bcd /set {default} osdevice ramdisk=[o:]\st\boot.wim,{11111111-1111-1111-1111-111111111111}
bcdedit /store p:\EFI\pro\boot\bcd /set {default} systemroot \Windows
bcdedit /store p:\EFI\pro\boot\bcd /set {default} nx OptIn
bcdedit /store p:\EFI\pro\boot\bcd /set {default} bootmenupolicy Standard
bcdedit /store p:\EFI\pro\boot\bcd /set {default} winpe Yes
md o:\WinRE
copy %USB%\ResetConfig.xml o:\WinRE
copy %USB%\winre.wim o:\WinRE
copy %USB%\qq.cmd o:\WinRE
copy %USB%\winre.wim o:\
copy o:\p4.wim o:\WinRE\install.wim
q:\Windows\system32\reagentc /setreimage /path o:\WinRE /target q:\Windows
q:\Windows\system32\reagentc /setosimage /path o:\WinRE /index 1 /target q:\Windows
q:\Windows\system32\reagentc /info /target q:\Windows
q:\Windows\system32\reagentc /enable /osguid {c5e6341f-7160-11e5-8540-fb1b9d86f171}
q:\Windows\system32\reagentc /info /target q:\Windows
bcdedit /store \\?\GLOBALROOT\device\harddisk0\partition2\EFI\Microsoft\boot\bcd /set {bootmgr} customactions 0x1000043000001 0x54000001
bcdedit /store \\?\GLOBALROOT\device\harddisk0\partition2\EFI\Microsoft\boot\bcd /set {bootmgr} custom:54000001 {cbd971bf-b7b8-4885-951a-fa03044f5d72}
bcdedit /store \\?\GLOBALROOT\device\harddisk0\partition2\EFI\Microsoft\boot\bcd /set {default} bootmenupolicy legacy
bcdedit /store \\?\GLOBALROOT\device\harddisk0\partition2\EFI\Microsoft\boot\bcd /set {cbd971bf-b7b8-4885-951a-fa03044f5d72} bootmenupolicy legacy
pause
goto EOF
:EEE
nodisk.exe
:EOF
%USB%\shutdown -r -t 0

看更多投稿作品
引用網址:https://home.gamer.com.tw/TrackBack.php?sn=3013888
All rights reserved. 版權所有,保留一切權利

相關創作

同標籤作品搜尋:好想打電動

留言共 0 篇留言

我要留言提醒:您尚未登入,請先登入再留言

喜歡★juju0500 可決定是否刪除您的留言,請勿發表違反站規文字。

前一篇:Brand New Da... 後一篇:抱怨文?幹勦文?好像都不...

追蹤私訊切換新版閱覽

作品資料夾

Waterfall10絕大部份巴友
金庸武俠穿越同人《何妨吟嘯且徐行》,逍遙二仙少年時的歷險,歡迎到我的小屋瀏覽 ~看更多我要大聲說昨天20:21


face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】