This commit is contained in:
Michael H.G. Schmidt 2021-01-14 00:03:49 +01:00
parent cb3840a9a3
commit 06e6c42909
5 changed files with 63 additions and 75 deletions

View File

@ -2,17 +2,10 @@
rem this script puts everything in place ...
set TOOLS=c:\tools
set LOG=c:\CustomSetup.txt
set SCRIPTS=%TOOLS%\scripts
set BATCH=%SCRIPTS%\autoconfig-all.cmd
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo ####### %0 #######
date /t
time /t
echo.
echo killing ssh agent ...
@ -57,11 +50,9 @@ del /F %TOOLS%\MediaCreationTool20H2.zip 1>nul 2>nul
echo.
echo starting %BATCH% ...
start /MIN cmd /C %BATCH%
call %BATCH%
echo.
date /t
time /t
echo ####### %0 #######
echo READY.
echo.

View File

@ -4,15 +4,8 @@ rem this script is doing most of the work ...
set T=c:\TEMP
set TOOLS=c:\tools
set SCRIPTS=%TOOLS%\scripts
set LOG=%SCRIPTS%\autoconfig-all.txt
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo.
echo ####### %0 #######
date /t
time /t
echo.
echo creating %T% ...
@ -139,8 +132,6 @@ echo rebooting ...
shutdown -g -t 0
echo.
date /t
time /t
echo ####### %0 #######
echo READY.
echo.

1
wim/.gitignore vendored
View File

@ -3,3 +3,4 @@
*.iso
*.exe
*.dll
Packages*.*

View File

@ -5,11 +5,10 @@ set MNT=c:\TEMP\WIM
rd /S /Q %MNT%\Windows\Setup\scripts 1>nul 2>nul
mkdir %MNT%\Windows\Setup\scripts 1>nul 2>nul
echo copying SetupComplete script to mountpoint %MNT% ...
echo copying scripts to %MNT%\Windows\Setup\scripts ...
copy /Y SetupComplete.cmd %MNT%\Windows\Setup\scripts
if %errorlevel% neq 0 exit /b %errorlevel%
echo copying script for custom setup to mountpoint %MNT% ...
copy /Y StartCustomSetup.cmd %MNT%\Windows\Setup\scripts
if %errorlevel% neq 0 exit /b %errorlevel%

View File

@ -1,5 +1,9 @@
set MNT=c:\TEMP\WIM
echo exporting PACKAGE list BEFORE doing any changes ...
install_wim_tweak /p %MNT% /l
move /Y Packages.txt Packages-BEFORE.txt
install_wim_tweak.exe /p %MNT% /c "Adobe-Flash" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-ApplicationGuard" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-Client" /r /n
@ -15,7 +19,7 @@ install_wim_tweak.exe /p %MNT% /c "Media-Ocr" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Composable-PlatformExtension" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Hyper-V" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-IoTUAP-ShellExt-Tools" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Media-Foundation" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Media-Foundation" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Mobile" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore" /r /n
install_wim_tweak.exe /p %MNT% /c "microsoft-onecore-applicationmodel-sync-desktop-fod-package-Wrapper" /r /n
@ -69,11 +73,10 @@ install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Legacy" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Links" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Lxss" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Management-SecureAssessment" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Format" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayback-OC" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Format" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayback-OC" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer-Payload-Package" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Streaming" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Streaming" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Migration" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MiracastView" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileBroadband" /r /n
@ -169,9 +172,9 @@ install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-UltimatePortableDeviceF
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Xps" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Xbox" /r /n
install_wim_tweak.exe /p %MNT% /c "MSMQ-Driver-Package" /r /n
install_wim_tweak.exe /p %MNT% /c "Multimedia-MFCore" /r /n
install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsCore" /r /n
install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsDolby" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Multimedia-MFCore" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsCore" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsDolby" /r /n
install_wim_tweak.exe /p %MNT% /c "MultiPoint" /r /n
install_wim_tweak.exe /p %MNT% /c "Networking-MPSSVC-Rules-EnterpriseEdition-Package" /r /n
install_wim_tweak.exe /p %MNT% /c "OpenSSH-Client-Package" /r /n
@ -182,10 +185,13 @@ install_wim_tweak.exe /p %MNT% /c "Server-Help" /r /n
install_wim_tweak.exe /p %MNT% /c "Windows-Defender" /r /n
install_wim_tweak.exe /p %MNT% /c "WindowsSearchEngineSKU-Group" /r /n
rem CLEANUP:
echo CLEANUP ...
del /F SOFTWAREBKP 1>nul 2>nul
rem export remaining PACKAGE names ...
echo exporting remaining PACKAGE names AFTER removing packages ...
install_wim_tweak /p %MNT% /l
dir Packages.txt
move /Y Packages.txt Packages-AFTER.txt
rem showing packages ...
dir Packages*.txt