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

View File

@ -4,15 +4,8 @@ rem this script is doing most of the work ...
set T=c:\TEMP set T=c:\TEMP
set TOOLS=c:\tools set TOOLS=c:\tools
set SCRIPTS=%TOOLS%\scripts 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 ####### echo ####### %0 #######
date /t
time /t
echo. echo.
echo creating %T% ... echo creating %T% ...
@ -139,8 +132,6 @@ echo rebooting ...
shutdown -g -t 0 shutdown -g -t 0
echo. echo.
date /t
time /t
echo ####### %0 ####### echo ####### %0 #######
echo READY. echo READY.
echo.

11
wim/.gitignore vendored
View File

@ -1,5 +1,6 @@
*.swp *.swp
*.wim *.wim
*.iso *.iso
*.exe *.exe
*.dll *.dll
Packages*.*

View File

@ -1,38 +1,37 @@
@echo off @echo off
set SOURCES=c:\TEMP\W10\sources set SOURCES=c:\TEMP\W10\sources
set MNT=c:\TEMP\WIM set MNT=c:\TEMP\WIM
rd /S /Q %MNT%\Windows\Setup\scripts 1>nul 2>nul rd /S /Q %MNT%\Windows\Setup\scripts 1>nul 2>nul
mkdir %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 copy /Y SetupComplete.cmd %MNT%\Windows\Setup\scripts
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
echo copying script for custom setup to mountpoint %MNT% ... copy /Y StartCustomSetup.cmd %MNT%\Windows\Setup\scripts
copy /Y StartCustomSetup.cmd %MNT%\Windows\Setup\scripts if %errorlevel% neq 0 exit /b %errorlevel%
if %errorlevel% neq 0 exit /b %errorlevel%
echo showing directory contents :
echo showing directory contents : dir %MNT%\Windows\Setup\scripts
dir %MNT%\Windows\Setup\scripts
echo doing cleanup on mountpoint %MNT% ...
echo doing cleanup on mountpoint %MNT% ... dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
echo unmounting and committing changes to %SOURCES%\install.wim ...
echo unmounting and committing changes to %SOURCES%\install.wim ... dism /Unmount-Wim /MountDir:%MNT% /Commit
dism /Unmount-Wim /MountDir:%MNT% /Commit
echo directory of %MNT% :
echo directory of %MNT% : dir %MNT%
dir %MNT%
echo exporting %SOURCES%\install.wim to %SOURCES%\install_FINAL.esd ...
echo exporting %SOURCES%\install.wim to %SOURCES%\install_FINAL.esd ... dism /Export-Image ^
dism /Export-Image ^ /SourceImageFile:%SOURCES%\install.wim ^
/SourceImageFile:%SOURCES%\install.wim ^ /DestinationImageFile:%SOURCES%\install_FINAL.esd ^
/DestinationImageFile:%SOURCES%\install_FINAL.esd ^ /SourceName:"Windows 10 Pro" ^
/SourceName:"Windows 10 Pro" ^ /Compress:Recovery ^
/Compress:Recovery ^ /CheckIntegrity
/CheckIntegrity
echo deleting old %SOURCES%\install.wim
echo deleting old %SOURCES%\install.wim del /F %SOURCES%\install.wim
del /F %SOURCES%\install.wim

View File

@ -1,5 +1,9 @@
set MNT=c:\TEMP\WIM 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 "Adobe-Flash" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-ApplicationGuard" /r /n install_wim_tweak.exe /p %MNT% /c "Containers-ApplicationGuard" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-Client" /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-Composable-PlatformExtension" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Hyper-V" /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-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-Mobile" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore" /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 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-Links" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Lxss" /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-Management-SecureAssessment" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Format" /r /n rem 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-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" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer-Payload-Package" /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-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-Migration" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MiracastView" /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 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-Windows-Xps" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Xbox" /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 "MSMQ-Driver-Package" /r /n
install_wim_tweak.exe /p %MNT% /c "Multimedia-MFCore" /r /n rem install_wim_tweak.exe /p %MNT% /c "Multimedia-MFCore" /r /n
install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsCore" /r /n rem 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-RestrictedCodecsDolby" /r /n
install_wim_tweak.exe /p %MNT% /c "MultiPoint" /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 "Networking-MPSSVC-Rules-EnterpriseEdition-Package" /r /n
install_wim_tweak.exe /p %MNT% /c "OpenSSH-Client-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 "Windows-Defender" /r /n
install_wim_tweak.exe /p %MNT% /c "WindowsSearchEngineSKU-Group" /r /n install_wim_tweak.exe /p %MNT% /c "WindowsSearchEngineSKU-Group" /r /n
rem CLEANUP: echo CLEANUP ...
del /F SOFTWAREBKP 1>nul 2>nul 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 install_wim_tweak /p %MNT% /l
dir Packages.txt move /Y Packages.txt Packages-AFTER.txt
rem showing packages ...
dir Packages*.txt