|
我这里这台老机子十几年了,PE加载的时候是USB1.1的,所以加载速度极其慢,
我没有用UD方式使用加速器。。。
有个问题就是启动PE的时候经常出现卡在初始化的步骤(INIT步骤?)
我尝试加载完内核后拔掉量产的U盘,以及把PE放硬盘启动,或者换内存条,均无效。
所以请教大家,这台机子为啥会卡在初始化步骤?
由于加载速度太慢,所以我也不想在pecmd.ini中一点一点测试(加载一次要半个小时。。。)
不知道大家遇到这种情况没?
这是我的pecmd.ini:
考虑到卡在初始化文字提示,所以问题肯定在加载外置文字提示前:
- //记录日志
- LOGS %SystemRoot%\PECMD.LOG
- TEAM ENVI W=%WinDir%|ENVI $WS=%WinDir%\SYSTEM32|DISP B32
- TEAM TEXT 初始化 Server 2003 PE 文件系统(勿按键盘) ...#0xFFFFFF L40 T50 $20*|WAIT 369
- TEAM FILE %WS%\NTOSKRNL.EXE|FILE %SystemDrive%\BOOT.SDI
- TEAM PATH %SystemDrive%\TEMP|INIT IU,3690|CALL $SHELL32.DLL,DllInstall,#1,U|WAIT 369
- TEAM ENVI V0=HKLM\System\CurrentControlSet\Services|ENVI V1=System32\Drivers
- REGI %V0%\USBHUB\ImagePath=%V1%\USBHUB.SYS
- REGI %V0%\USBCCGP\ImagePath=%V1%\USBCCGP.SYS
- REGI %V0%\USBEHCI\ImagePath=%V1%\USBEHCI.SYS
- REGI %V0%\USBOHCI\ImagePath=%V1%\USBOHCI.SYS
- REGI %V0%\USBSTOR\ImagePath=%V1%\USBSTOR.SYS
- REGI %V0%\USBUHCI\ImagePath=%V1%\USBUHCI.SYS
- REGI %V0%\HIDUSB\ImagePath=%V1%\HIDUSB.SYS
- REGI %V0%\MOUCLASS\ImagePath=%V1%\MOUCLASS.SYS
- REGI %V0%\MOUHID\ImagePath=%V1%\MOUHID.SYS
- REGI %V0%\KBDCLASS\ImagePath=%V1%\KBDCLASS.SYS
- REGI %V0%\KBDHID\ImagePath=%V1%\KBDHID.SYS
- REGI %V0%\CDROM\ImagePath=%V1%\CDROM.SYS
- REGI %V0%\AMDHUB30\ImagePath=%V1%\AMDHUB30.SYS
- REGI %V0%\AMDXHC\ImagePath=%V1%\AMDXHC.SYS
- REGI %V0%\USBFILTER\ImagePath=%V1%\USBFILTER.SYS
- REGI %V0%\ASMTHUB3\ImagePath=%V1%\ASMTHUB3.SYS
- REGI %V0%\ASMTXHCI\ImagePath=%V1%\ASMTXHCI.SYS
- REGI %V0%\ETRONHUB3\ImagePath=%V1%\ETRONHUB3.SYS
- REGI %V0%\ETRONXHCI\ImagePath=%V1%\ETRONXHCI.SYS
- REGI %V0%\NUSB3HUB\ImagePath=%V1%\NUSB3HUB.SYS
- REGI %V0%\NUSB3XHC\ImagePath=%V1%\NUSB3XHC.SYS
- REGI %V0%\RUSB3HUB\ImagePath=%V1%\RUSB3HUB.SYS
- REGI %V0%\RUSB3XHC\ImagePath=%V1%\RUSB3XHC.SYS
- REGI %V0%\nusb3xhc\ImagePath=%V1%\ViaHub3.sys
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D20EA4E1-3957-11d2-A40B-0C5020524153}\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\! `删除任务计划
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{450D8FBA-AD25-11D0-98A8-0800361B1103}\! `删除桌面我的文档
- REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFavoritesMenu=#1
- REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRecentDocsMenu=#1
- NUMK 0
- RUNS PECMD.EXE EXEC !%WS%\INTERNAT.EXE,输入法指示器
- EXEC !X:\WXPE\SYSTEM32\MMC.CMD
- TEAM WAIT 369|ENVI
- USER Windows Server 2003 PE,我心如水03PE修改版
- EXEC !X:\WXPE\SYSTEM32\NUMLOCK.EXE
- CALL $SEND.DLL
- FONT X:\WXPE\FONTS
- EXEC !%WS%\REG.CMD
- //设置快捷键并创建快捷方式
- HOTK #112,%WS%\KTM.exe`注册热键:F1键盘控制鼠标
- HOTK SHIFT+#116,X:\WXPE\SYSTEM32\PECMD.EXE LOAD X:\WXPE\SYSTEM32\REFRESH.INI`注册热键:Shift+F5 刷新系统
- LINK %userprofile%\桌面\键盘控制鼠标(F1),%WS%\KTM.exe
- LINK %userprofile%\桌面\屏幕键盘,%WS%\osk\osk.exe
- LINK %userprofile%\桌面\设置 1024 分辨率,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\VGA.INI,%WS%\Disp_Part.ICO
- LINK %QuickLaunch%\临时文件清除,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\CLEANTEMP.INI,X:\WXPE\SYSTEM32\CLEANTEMP.ICO
- LINK %StartMenu%\刷新系统(Shift+F5),X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\REFRESH.INI,X:\WXPE\SYSTEM32\CLEANTEMP.ICO
- LINK %StartMenu%\设置临时文件,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\PESET.INI,SHELL32.DLL#12
- LINK %StartMenu%\设置ImDisk虚拟磁盘,X:\WXPE\SYSTEM32\ImDisk.cpl,,X:\WXPE\SYSTEM32\IMDISK.ICO
- LINK %Programs%\附件\记事本,%WS%\NOTEPAD.EXE
- LINK %Programs%\附件\命令提示符,%WS%\CMD.EXE
- LINK %Programs%\附件\注册表编辑器,%W%\REGEDIT.EXE
- LINK %Programs%\附件\显示隐藏分区,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\SHOW.INI,%WS%\show.ico
- LINK %Programs%\附件\设置 1024 分辨率,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\VGA.INI,%WS%\Disp_Part.ICO
- LINK %Programs%\附件\计算器,X:\WXPE\SYSTEM32\CALC.EXE
- LINK %Programs%\附件\画图,X:\WXPE\SYSTEM32\MSPAINT.EXE
- LINK %Programs%\附件\屏幕键盘,%WS%\osk\osk.exe
- LINK %Programs%\附件\键盘控制鼠标(F1),%WS%\KTM.exe
- LINK %Programs%\附件\临时文件清除,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\CLEANTEMP.INI,X:\WXPE\SYSTEM32\CLEANTEMP.ICO
- //加载外置工具
- TEXT
- TEXT 加载外置工具 ...#0xFFFFFF L40 T50 $20*
- LOAD \WINPE\PETOOLS.ini
- IFEX Y:\TOOLS,!EXEC =!%WS%\bootpart.exe -mount -readonly -driveletter W:`判断是否为U+隐藏
- IFEX W:\WINPE,LOAD W:\WINPE\PETOOLS.ini
- WAIT 669
- SITE %USERPROFILE%\「开始」菜单\程序\启动,+H
- EXEC !%WinDir%\SYSTEM32\OEM.CMD
- REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\WebView=#1
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FindExtensions\Static\WebSearch\!
- REGI HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons\SmallIcons=no
- TEAM SERV !AudioSrv|SERV AudioSrv|SERV EVENTLOG
- TEXT
- TEXT 进入桌面后稍等一会儿再操作^_^ ...#0xFFFFFF L40 T50 $20*
- TEAM FIND Explorer.EXE,!TEAM SHEL %WinDir%\EXPLORER.EXE|ENVI |WAIT 500
- TEAM TEXT |ENVI |WAIT 1000
- MESS 是否结束Winlogin.exe进程? @请选择 #YN *3000 $Y
- FIND $%YESNO%=YES,CALL KILL!CALL LATER
- _SUB KILL
- TEAM KILL SMSS.EXE|WAIT 1000|KILL WINLOGON.EXE|FILE %WS%\SMSS.EXE|FILE %WS%\WINLOGON.EXE
- _END
- _SUB LATER
- LINK %Programs%\附件\结束Winlogin.exe进程,X:\WXPE\SYSTEM32\PECMD.EXE,LOAD X:\WXPE\SYSTEM32\KILL.INI
- _END
- //若外置工具未成功加载,则提示
- IFEX Y:\TOOLS,!TEAM WAIT 369|MESS 外置工具未成功加载! @抱歉 #OK *2000
- LOGS
复制代码
加载外置前的两个执行批处理:
REG.CMD:
- rem 设置环境变量
- PUSHD %~dp0
- rem 关联ImDisk右键
- reg add "HKCR\*\shell\ImDiskMountFile" /f /ve /t REG_SZ /d "加载ImDisk虚拟磁盘"
- reg add "HKCR\*\shell\ImDiskMountFile\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_MountFile %%L"
- reg add "HKCR\inifile\shell\PECMD 加载配置\command" /f /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\pecmd.exe load %%1"
- reg add "HKCR\Drive\shell\ImDiskSaveImage" /f /ve /t REG_SZ /d "保存ImDisk虚拟磁盘"
- reg add "HKCR\Drive\shell\ImDiskSaveImage\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_SaveImageFile %%L"
- reg add "HKCR\Drive\shell\ImDiskUnmount" /f /ve /t REG_SZ /d "卸载ImDisk虚拟磁盘"
- reg add "HKCR\Drive\shell\ImDiskUnmount\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_RemoveDevice %%L"
- rem 添加右键菜单
- reg add "HKCR\*\shell\用记事本打开\command" /f /ve /t REG_SZ /d "notepad.exe %%1"
- reg add "HKCR\*\shell\最大CAB压缩\command" /f /ve /t REG_SZ /d "makecab /v3 /D CompressionType=LZX /D CompressionMemory=21 "%%1""
- rem 禁止显示控制面板中的一些无用项
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v "DisAllowCPL" /t REG_DWORD /d 1
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisAllowCPL" /f /v "1" /t REG_SZ /d "打印机和传真"
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisAllowCPL" /f /v "2" /t REG_SZ /d "字体"
- rem 注册MSI支持
- msiexec /regserver
复制代码
MMC.CMD:
- PUSHD %~dp0
- SET TP=%CD%
- FOR %%i IN (DFRGSNAP.DLL DFRGUI.DLL DMDLGS.DLL DMDSKMGR.DLL DMOCX.DLL FILEMGMT.DLL MMCNDMGR.DLL MMCSHEXT.DLL MYCOMPUT.DLL OLEACC.DLL VSSAPI.DLL DMVIEW.OCX devmgr.dll URLMON.DLL DMSERVER.DLL) DO REGSVR32 /S %%i
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg /v FreeSpaceErrorLevel /t REG_SZ /d 15 /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg /v PathName /t REG_EXPAND_SZ /d %TP% /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg /v ResourceDllName /t REG_EXPAND_SZ /d DfrgRes.dll /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg /v LogFilePath /t REG_EXPAND_SZ /d %%TEMP%%\dfrg.log /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg /v CreateLogFile /t REG_DWORD /d 1 /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction /v Enable /t REG_SZ /d Y /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction /v LcnEndLocation /t REG_SZ /d 1822133 /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction /v LcnStartLocation /t REG_SZ /d 1713518 /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction /v OptimizeComplete /t REG_SZ /d Yes /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction /v OptimizeError /t REG_SZ /d " 1" /f >NUL
- REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\DefragPath /ve /t REG_EXPAND_SZ /d "%TP%\dfrg.msc %%c:" /f >NUL
- REG ADD HKCR\.msc /ve /t REG_SZ /d MSCFile /f >NUL
- REG ADD HKCR\MSCFile\DefaultIcon /ve /t REG_EXPAND_SZ /d %%1 /f >NUL
- REG ADD HKCR\MSCFile\Shell\Open\Command /ve /t REG_EXPAND_SZ /d "%TP%\MMC.exe "%%1" %%*" /f >NUL
- REG ADD HKCR\CLSID\{80EE4901-33A8-11d1-A213-0080C88593A5} /ve /t REG_SZ /d "NTFS 碎片整理引擎" /f >NUL
- REG ADD HKCR\CLSID\{80EE4901-33A8-11d1-A213-0080C88593A5}\LocalServer32 /ve /t REG_SZ /d %TP%\DfrgNtfs.exe /f >NUL
- REG ADD HKCR\CLSID\{80EE4902-33A8-11d1-A213-0080C88593A5} /ve /t REG_SZ /d "FAT 碎片整理引擎" /f >NUL
- REG ADD HKCR\CLSID\{80EE4902-33A8-11d1-A213-0080C88593A5}\LocalServer32 /ve /t REG_SZ /d %TP%\DfrgFat.exe /f >NUL
- REG ADD HKCR\CLSID\{4FB6BB00-3347-11d0-B40A-00AA005FF586}\LocalServer32 /ve /t REG_EXPAND_SZ /d "%TP%\dmadmin.exe /com" /f >NUL
- REG ADD HKCR\CLSID\{D485DDC0-49C6-11d1-8E56-00A0C92C9D5D}\LocalServer32 /ve /t REG_SZ /d %TP%\dmremote.exe /f >NUL
- REG ADD HKCR\AppID\{D485DDC0-49C6-11d1-8E56-00A0C92C9D5D} /v LocalServer32 /t REG_SZ /d %TP%\dmremote.exe /f >NUL
- REG ADD HKCR\CLSID\{135698D2-3A37-4d26-99DF-E2BB6AE3AC61}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\dmintf.dll /f >NUL
- REG ADD HKCR\CLSID\{3A410F21-553F-11d1-8E5E-00A0C92C9D5D}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\dmintf.dll /f >NUL
- REG ADD HKCR\CLSID\{4BDAFC52-FE6A-11d2-93F8-00105A11164A}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\dmintf.dll /f >NUL
- REG ADD HKCR\CLSID\{D2D79DF5-3400-11d0-B40B-00AA005FF586}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\dmintf.dll /f >NUL
- REG ADD HKCR\CLSID\{D2D79DF7-3400-11d0-B40B-00AA005FF586}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\dmintf.dll /f >NUL
- REG ADD HKCR\CLSID\{DEB01010-3A37-4d26-99DF-E2BB6AE3AC61}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\dmintf.dll /f >NUL
- REG ADD HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage /ve /t REG_EXPAND_SZ /d 管理^(^&G^) /f >NUL
- REG ADD HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command /ve /t REG_EXPAND_SZ /d "%TP%\mmc.exe /s %TP%\compmgmt.msc" /f >NUL
- REG ADD HKCR\CLSID\{D20EA4E1-3957-11d2-A40B-0C5020524153}\DefaultIcon /ve /t REG_EXPAND_SZ /d "%TP%\main.cpl,10" /f >NUL
- REG ADD HKCR\CLSID\{06A03425-C9EB-11d2-8CAA-0080C739E3E0}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\mmcshext.dll /f >NUL
- REG ADD HKCR\CLSID\{7A80E4A8-8005-11D2-BCF8-00C04F72C717}\InprocServer32 /ve /t REG_EXPAND_SZ /d %TP%\mmcshext.dll /f >NUL
- REG ADD HKLM\SYSTEM\CurrentControlSet\Services\dmadmin /v ImagePath /t REG_EXPAND_SZ /d "%TP%\dmadmin.exe /com" /f >NUL
- REG ADD HKLM\SYSTEM\CurrentControlSet\Services\dmserver\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %TP%\dmserver.dll /f >NUL
- REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v StartMenuAdminTools /t REG_SZ /d YES /f >NUL
- REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D20EA4E1-3957-11d2-A40B-0C5020524153} /ve /t REG_SZ /d "管理工具" /f >NUL
- SET GP=%ALLUSERSPROFILE%\「开始」菜单\程序\管理工具
- IF NOT EXIST "%GP%" MD "%GP%"
- PECMD.exe LINK %GP%\磁盘管理,DISKMGMT.MSC
- PECMD.exe LINK %GP%\设备管理器,DEVMGMT.MSC
- PECMD.exe LINK %GP%\服务,SERVICES.MSC
- PECMD.exe LINK %GP%\磁盘碎片整理程序,DFRG.MSC
- PECMD.exe LINK %GP%\计算机管理,COMPMGMT.MSC
复制代码
麻烦大家帮忙! |
|