2023-01-14 15:09:04 +01:00
|
|
|
@echo off
|
|
|
|
|
2023-01-22 12:56:24 +01:00
|
|
|
set SCRIPT_SETTINGS=settings.cmd
|
2024-02-21 11:58:08 +01:00
|
|
|
set CUSTOM_SETTINGS=..\customsettings.cmd
|
2023-01-22 12:56:24 +01:00
|
|
|
|
|
|
|
rem default: disabled
|
|
|
|
set windows_targetrelease=0
|
|
|
|
|
2023-01-14 15:09:04 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
|
2023-01-22 12:56:24 +01:00
|
|
|
echo.
|
|
|
|
echo searching for SCRIPT settings ...
|
|
|
|
if NOT EXIST %SCRIPT_SETTINGS% (
|
|
|
|
echo INFO: config file %SCRIPT_SETTINGS% NOT FOUND
|
2023-01-14 15:09:04 +01:00
|
|
|
) else (
|
2023-01-22 12:56:24 +01:00
|
|
|
echo OK. Loading SCRIPT settings ...
|
|
|
|
call %SCRIPT_SETTINGS%
|
|
|
|
)
|
|
|
|
|
|
|
|
echo.
|
2024-02-21 11:58:08 +01:00
|
|
|
echo searching for CUSTOM settings ...
|
|
|
|
if NOT EXIST %CUSTOM_SETTINGS% (
|
|
|
|
echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND
|
2023-01-22 12:56:24 +01:00
|
|
|
) else (
|
2024-02-21 11:58:08 +01:00
|
|
|
echo OK. Loading CUSTOM settings ...
|
|
|
|
call %CUSTOM_SETTINGS%
|
2023-01-14 15:09:04 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
echo ++++++++++++++++++++++++++++++++++
|
|
|
|
echo windows_targetrelease=%windows_targetrelease%
|
|
|
|
echo ++++++++++++++++++++++++++++++++++
|
|
|
|
echo.
|
|
|
|
|
|
|
|
if %windows_targetrelease% == 0 (
|
|
|
|
echo WARNING: windows target release NOT set!
|
|
|
|
) else (
|
2023-01-22 12:56:24 +01:00
|
|
|
|
2023-01-14 15:09:04 +01:00
|
|
|
echo setting windows update target release ...
|
|
|
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" ^
|
2023-02-08 16:12:23 +01:00
|
|
|
/v TargetReleaseVersion /t REG_DWORD /d 1 /f
|
2023-01-14 15:09:04 +01:00
|
|
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" ^
|
2023-02-08 16:12:23 +01:00
|
|
|
/v TargetReleaseVersionInfo /t REG_SZ /d %windows_targetrelease% /f
|
2023-01-22 12:56:24 +01:00
|
|
|
|
2023-01-14 15:09:04 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|