mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
36 lines
936 B
Batchfile
36 lines
936 B
Batchfile
|
|
rem // For Samba Servers
|
|
call :PolicyLmCompatLevel
|
|
|
|
if "x%opt[component.PPPoE]%"=="xtrue" (
|
|
call :ApplySubPatch "..\PPPoE" main.bat
|
|
)
|
|
|
|
if not exist "%X_SYS%\wlanapi.dll" (
|
|
call :ApplySubPatch "..\00-Boot2WinRE" _WinPE-WiFi-Package.bat
|
|
)
|
|
|
|
if "x%opt[build.registry.software]%"=="xfull" (
|
|
reg add "HKLM\Tmp_SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\Capabilities\wlanLocationBypass" /v RequireWindowsCert /t REG_DWORD /d 0 /f
|
|
)
|
|
|
|
call _networktrayicon.bat
|
|
call full_functional.bat
|
|
call netdrivers.bat
|
|
|
|
goto :EOF
|
|
|
|
:ApplySubPatch
|
|
echo Applying Patch: %~1\%~2
|
|
pushd "%~1"
|
|
call %~2
|
|
popd
|
|
goto :EOF
|
|
|
|
|
|
:PolicyLmCompatLevel
|
|
if "x%opt[policy.lmcompatlevel]%"=="x-" set opt[policy.lmcompatlevel]=
|
|
if "x%opt[policy.lmcompatlevel]%"=="x" goto :EOF
|
|
reg add HKLM\Tmp_System\ControlSet001\Control\Lsa /v LmCompatibilityLevel /t REG_DWORD /d %opt[policy.lmcompatlevel]% /f
|
|
goto :EOF
|