2345截图20161201173041.png (146.64 KB, 下载次数: 81)
如图
@echo off
rem 提取文件
if not exist mmcfile mkdir mmcfile
cd /d mmcfile
set mmcfile=%cd%
cd /d %windir%\system32\
FOR %%i IN (MMC.EXE MMCBASE.DLL FRGSNAP.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 copy /y %%i %mmcfile%\
FOR /F %%i IN ('dir /a /b *.MSC') DO copy /y %%i %mmcfile%\
rem 提取mui
if not exist %mmcfile%\ZH-CN mkdir %mmcfile%\ZH-CN
set mmcmui=%mmcfile%\ZH-CN
cd /D ZH-CN
FOR %%i IN (MMC.EXE MMCBASE.DLL FRGSNAP.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 copy /y %%i.mui %mmcmui%\
FOR /f %%i IN ('dir /a /b *.MSC') DO copy /y %%i %mmcmui%
PAUSE
@ECHO OFF
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
exit
不知 发表于 2016-12-1 19:23
先在正常系统中运行MMC提取.bat提取文件,再复制mmcfile文件夹中的文件到PE的\wndows\system32\.
@echo of ...
15089529517 发表于 2016-12-1 22:29
谢谢不知,按照你的办法确实能打开MMC了,但服务的里面的扩展没法看到服务、标准里面可看到
回复好像 ...
不知 发表于 2016-12-2 12:18
点击高级模式可以回复图片。
——————————————————————————————
不知 发表于 2016-12-2 12:18
点击高级模式可以回复图片。
——————————————————————————————
15089529517 发表于 2016-12-4 15:27
大神,能加我QQ吗咨询个问题,qq:1332690015
欢迎光临 无忧启动论坛 (http://wuyou.net/) | Powered by Discuz! X3.3 |