|
以前10240时,好像测试过,只开fbwf的情况,
copy fbwf.sys ,copy fbwf.cfg %wimpath%\Windows
fbwf.cfg控制系统盘大小
导入下面注册表即可
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "DependOnService" /t REG_MULTI_SZ /d "FltMgr"
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "Description" /t REG_SZ /d "File Based Write Filter driver"
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "DisplayName" /t REG_SZ /d "File Based Write Filter"
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "EnabledOnAllSkus" /t REG_DWORD /d 0
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "Group" /t REG_SZ /d "FSFilter SYSTEM Recovery"
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "ImagePath" /t REG_EXPAND_SZ /d "system32\drivers\Fbwf.sys"
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "Start" /t REG_DWORD /d 0
reg add "HKLM\1sys\ControlSet001\Services\FBWF" /f /v "Type" /t REG_DWORD /d 2
reg add "HKLM\1sys\ControlSet001\Services\FBWF\Enum" /f /v "0" /t REG_SZ /d "Root\LEGACY_FBWF\0000"
reg add "HKLM\1sys\ControlSet001\Services\FBWF\Enum" /f /v "Count" /t REG_DWORD /d 1
reg add "HKLM\1sys\ControlSet001\Services\FBWF\Enum" /f /v "NextInstance" /t REG_DWORD /d 1
reg add "HKLM\1sys\ControlSet001\Services\FBWF\Instances" /f /v "DefaultInstance" /t REG_SZ /d "Fbwf Instance"
reg add "HKLM\1sys\ControlSet001\Services\FBWF\Instances\Fbwf Instance" /f /v "Altitude" /t REG_SZ /d "226000"
reg add "HKLM\1sys\ControlSet001\Services\FBWF\Instances\Fbwf Instance" /f /v "Flags" /t REG_DWORD /d 0
下面部分,当前系统是无法导入的
psexec -i -s -d %~dp0wimsetup.bat
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF" /f /v "NextInstance" /t REG_DWORD /d 1
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000" /f /v "Class" /t REG_SZ /d "LegacyDriver"
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000" /f /v "ClassGUID" /t REG_SZ /d "{8ECC055D-047F-11D1-A537-0000F8753ED1}"
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000" /f /v "ConfigFlags" /t REG_DWORD /d 0
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000" /f /v "DeviceDesc" /t REG_SZ /d "File-Based Write Filter"
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000" /f /v "Legacy" /t REG_DWORD /d 1
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000" /f /v "Service" /t REG_SZ /d "FBWF"
reg add "HKLM\1sys\ControlSet001\Enum\Root\LEGACY_FBWF\0000\control" /f /v "ActiveService" /t REG_SZ /d "FBWF"
|
|