added windows target release for windows update

This commit is contained in:
Michael H.G. Schmidt 2023-01-14 15:09:04 +01:00
parent d6d9ad83f6
commit 6aebaef85a
4 changed files with 36 additions and 2 deletions

View File

@ -115,6 +115,9 @@ echo.
call modify-path.cmd
echo.
call modify-windowsupdate.cmd
echo.
call modify-explorer.cmd
echo.

View File

@ -11,9 +11,9 @@ if EXIST settings.cmd (
set explorer_quick_access=1
)
echo ++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++
echo explorer_quick_access=%explorer_quick_access%
echo ++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++
echo.
if %explorer_quick_access% == 0 (

View File

@ -0,0 +1,30 @@
@echo off
echo ####### %0 #######
if EXIST settings.cmd (
echo loading settings ...
call settings.cmd
) else (
echo WARNING: settings.cmd not found!
echo setting defaults ...
set windows_targetrelease=0
)
echo ++++++++++++++++++++++++++++++++++
echo windows_targetrelease=%windows_targetrelease%
echo ++++++++++++++++++++++++++++++++++
echo.
if %windows_targetrelease% == 0 (
echo WARNING: windows target release NOT set!
) else (
echo setting windows update target release ...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" ^
/v TargetReleaseVersion /t REG_DWORD /d 1 /f 1>nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" ^
/v TargetReleaseVersionInfo /t REG_SZ /d %windows_targetrelease% /f 1>nul
)
echo ####### %0 #######

View File

@ -1,5 +1,6 @@
set LANG=de-DE
set windows_updates=0
set windows_targetrelease=2009
set logon_logo=1
set install_firefox=1
set install_aerolite=1