diff --git a/scripts/autoconfig-all.cmd b/scripts/autoconfig-all.cmd index 0702883..af9317a 100644 --- a/scripts/autoconfig-all.cmd +++ b/scripts/autoconfig-all.cmd @@ -115,6 +115,9 @@ echo. call modify-path.cmd echo. +call modify-windowsupdate.cmd +echo. + call modify-explorer.cmd echo. diff --git a/scripts/modify-explorer.cmd b/scripts/modify-explorer.cmd index 1929d23..7a8e4af 100644 --- a/scripts/modify-explorer.cmd +++ b/scripts/modify-explorer.cmd @@ -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 ( diff --git a/scripts/modify-windowsupdate.cmd b/scripts/modify-windowsupdate.cmd new file mode 100644 index 0000000..fd267cc --- /dev/null +++ b/scripts/modify-windowsupdate.cmd @@ -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 ####### + diff --git a/scripts/settings.cmd b/scripts/settings.cmd index 0e33f94..7c37fd2 100644 --- a/scripts/settings.cmd +++ b/scripts/settings.cmd @@ -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