diff --git a/.gitignore b/.gitignore index 0a5d427..c8f15e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +tools/* +software/* *.swp *.wim *.iso diff --git a/CustomSetup.cmd b/CustomSetup.cmd new file mode 100644 index 0000000..8576e94 --- /dev/null +++ b/CustomSetup.cmd @@ -0,0 +1,125 @@ +@echo off +set T=c:\TEMP +set TOOLS=c:\tools +mkdir %USERPROFILE%\workspace 1>nul 2>nul +mkdir %USERPROFILE%\.ssh 1>nul 2>nul + +echo ####### %0 ####### + +rem echo DISABLE firewall ... +rem netsh advfirewall set allprofiles state off + +echo creating TEMP directory ... +mkdir %T% 1>nul 2>nul + +echo killing ssh agent ... +taskkill /F /IM ssh-agent.exe +taskkill /F /IM ssh.exe + +echo restart explorer ... +taskkill /F /IM explorer.exe & start explorer.exe + +echo deleting %TOOLS% and %SCRIPTS% ... +rd /S /Q %TOOLS% + +echo copying folder tools to %TOOLS% ... +robocopy tools %TOOLS% /MIR /256 /NJH /NFL /NDL + +rem chdir to scripts folder ... +cd scripts + +echo unpacking BGInfo ... +%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\BGInfo.zip +del /Q %TOOLS%\BGInfo.zip 1>nul 2>nul + +echo unpacking TOTAL commander ... +%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\totalcmd.zip +del /Q %TOOLS%\totalcmd.zip 1>nul 2>nul + +echo unpacking notepad++ ... +%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\notepad++.zip +del /Q %TOOLS%\notepad++.zip 1>nul 2>nul + +echo unpacking ImapCopy ... +%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\ImapCopy.zip +del /Q %TOOLS%\ImapCopy.zip 1>nul 2>nul + +echo installing GIT ... +call install-git.cmd + +echo setting GIT_EDITOR variable (all users) ... +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^ + /v GIT_EDITOR ^ + /t REG_EXPAND_SZ ^ + /d "%TOOLS%\vim.exe" ^ + /f + +echo setting GIT_SSH variable (all users) ... +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^ + /v GIT_SSH ^ + /t REG_EXPAND_SZ ^ + /d "%TOOLS%\usr\bin\ssh.exe" ^ + /f + +rem installing startup links ... +call install-logonscript.cmd + +rem installing desktop icons ... +call install-desktopicons.cmd + +rem installing tweaks ... +call install-tweaks.cmd + +rem changing power configuration ... +call install-powertweaks.cmd + +rem uninstall OneDrive completely ... +call %SCRIPTS%\uninstall-onedrive.cmd + +rem uninstall Edge completely ... +call %SCRIPTS%\uninstall-edge.cmd + +rem allow execution of any powershell script ... +powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine" +powershell -Command ^ +"$T=Get-ExecutionPolicy ; if ($T -eq 'Bypass') { ^ + write-host 'POWERSHELL: Execution Policy was set to BYPASS' ^ +} ^ + else { ^ + write-host 'ERROR: CANNOT SET Execution Policy to BYPASS !' ^ +}" +echo. + +rem uninstall some Apps (but keep the store) ... +powershell %SCRIPTS%\uninstall-apps.ps1 + +echo setting PATH variable (all users) ... +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^ + /v PATH ^ + /t REG_EXPAND_SZ ^ + /d "%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\wbem;%SYSTEMROOT%\system32\WindowsPowerShell\v1.0;%TOOLS%;%TOOLS%\git\bin;%TOOLS%\git\usr\bin;%TOOLS%\notepad++" ^ + /f + +echo cleanup startmenu ... +call %SCRIPTS%\cleanup-startmenu.cmd +powershell -Command %SCRIPTS%\cleanup-tiles.ps1 + +rem install openshell (fuck you microsoft) ... +call %SCRIPTS%\install-openshell.cmd + +rem install Mozilla Firefox (fuck you google) ... +call %SCRIPTS%\install-firefox.cmd + +rem install F-Secure Antivirus ... +call %SCRIPTS%\install-antivir.cmd + +rem echo ENABLE firewall ... +rem netsh advfirewall set allprofiles state on + +rem disable autologon for support user ... +call %SCRIPTS%\disable-autologon.cmd + +echo ####### %0 ####### +echo READY. +pause + diff --git a/PrepareStick.cmd b/PrepareStick.cmd index 2892193..06e41fe 100644 --- a/PrepareStick.cmd +++ b/PrepareStick.cmd @@ -1,35 +1,75 @@ @echo off -set TARGET=D:\ -set SOURCES=c:\TEMP\Win10\sources +set SOURCES=c:\TEMP\W10\sources -echo ####### %0 ####### +rem =================== +rem COMMANDLINE CHECKS +rem =================== -echo using drive %TARGET% ... +IF %1.==. GOTO USAGE +set USBDRIVE=%1 -if NOT EXIST %TARGET% ( - echo ERROR: drive %TARGET% not found! +if NOT EXIST %USBDRIVE% ( + echo ERROR: file %USBDRIVE% does not exist! + exit /b +) + +if /I %USBDRIVE% == C: ( + echo ERROR: cannot use drive %USBDRIVE% ! + exit /b +) + + +rem ===== +rem MAIN +rem ===== + +echo using drive %USBDRIVE% ... + +if NOT EXIST %USBDRIVE% ( + echo ERROR: drive %USBDRIVE% not found! exit /b ) :ask set /p answer="BIOS or UEFI setup (B/U)? " if /i "%answer:~,1%" EQU "B" ( - copy /Y autounattend_BIOS.xml %TARGET%\autounattend.xml - goto cont + copy /Y autounattend_BIOS.xml %USBDRIVE%\autounattend.xml + GOTO CONT ) if /i "%answer:~,1%" EQU "U" ( - copy /Y autounattend_UEFI.xml %TARGET%\autounattend.xml - goto cont + copy /Y autounattend_UEFI.xml %USBDRIVE%\autounattend.xml + GOTO CONT ) echo Please type B for BIOS or U for UEFI setup. goto ask -:cont +:CONT if EXIST %SOURCES%\install_FINAL.esd ( - robocopy %SOURCES% %TARGET%\sources install_FINAL.esd - del /Q %TARGET%\sources\install.esd 1>nul 2>nul - move /Y %TARGET%\sources\install_FINAL.esd %TARGET%\sources\install.esd + echo copying install.esd to drive %USBDRIVE% ... + robocopy %SOURCES% %USBDRIVE%\sources install_FINAL.esd /NFL /NDL + del /F %USBDRIVE%\sources\install.esd + move /Y %USBDRIVE%\sources\install_FINAL.esd %USBDRIVE%\sources\install.esd move /Y %SOURCES%\install_FINAL.esd %SOURCES%\install_FINAL_copy.esd ) -echo ####### %0 ####### +for %%P in (tools software scripts) do ( + if EXIST %%P ( + rd /S /Q %USBDRIVE%\%%P + echo copying folder %%P to drive %USBDRIVE% ... + robocopy %%P %USBDRIVE%\%%P /MIR /256 /NJH /NFL /NDL + ) +) + +echo copying custom setup script to %USBDRIVE% ... +copy /Y CustomSetup.cmd %USBDRIVE%\ + +rem ===== +rem END +rem ===== +GOTO END + +:USAGE +echo "usage: %0 " + +:END + diff --git a/RunScriptTest.cmd b/RunScriptTest.cmd deleted file mode 100644 index 6731fbc..0000000 --- a/RunScriptTest.cmd +++ /dev/null @@ -1,15 +0,0 @@ -@echo off -set SCRIPTS=%WINDIR%\Setup\scripts -set LOG=C:\SetupComplete.txt -mkdir %SCRIPTS% 1>nul 2>nul -del /Q %LOG% 1>nul 2>nul - -echo ####### %0 ####### - -copy /Y SetupComplete.cmd %SCRIPTS% -copy /Y ToolsDownload.* %SCRIPTS% - -echo ####### %0 ####### - -call %SCRIPTS%\SetupComplete.cmd - diff --git a/autounattend_BIOS.xml b/autounattend_BIOS.xml index c37d513..bf2574e 100644 --- a/autounattend_BIOS.xml +++ b/autounattend_BIOS.xml @@ -128,7 +128,7 @@ 2 Initial Setup - cmd /C c:\scripts\1st-setup.cmd + cmd /C c:\windows\setup\scripts\StartCustomSetup.cmd diff --git a/autounattend_UEFI.xml b/autounattend_UEFI.xml index 414ce9f..7557aeb 100644 --- a/autounattend_UEFI.xml +++ b/autounattend_UEFI.xml @@ -148,7 +148,7 @@ 2 Initial Setup - cmd /C c:\scripts\1st-setup.cmd + cmd /C c:\windows\setup\scripts\StartCustomSetup.cmd diff --git a/copy-iso.cmd b/copy-iso.cmd deleted file mode 100644 index 8626607..0000000 --- a/copy-iso.cmd +++ /dev/null @@ -1,8 +0,0 @@ -set W10=c:\TEMP\Win10 - -rd /S /Q %W10% 1>nul 2>nul -mkdir %W10% 1>nul 2>nul - -powershell Mount-DiskImage -ImagePath %W10%.iso -robocopy \\.\CDROM0 %W10% /MIR /256 -powershell Dismount-Diskimage -ImagePath %W10%.iso diff --git a/download-iso.cmd b/download-iso.cmd deleted file mode 100644 index 624be7b..0000000 --- a/download-iso.cmd +++ /dev/null @@ -1,9 +0,0 @@ -mkdir c:\TEMP 1>nul 2>nul - -set ISOGLOB=c:\TEMP\Win10*.iso -set ISO=c:\TEMP\Win10.iso - -del %ISOGLOB% 1>nul 2>nul -ftp -i -s:download-iso.ftp -move %ISOGLOB% %ISO% - diff --git a/download-iso.ftp b/download-iso.ftp deleted file mode 100644 index 744da08..0000000 --- a/download-iso.ftp +++ /dev/null @@ -1,9 +0,0 @@ -open exabyte-systems.com -w10install -9054c6cf-c54c -binary -lcd c:\TEMP -cd iso -mget Win10*.iso -bye - diff --git a/iso/.gitignore b/iso/.gitignore new file mode 100644 index 0000000..5988f97 --- /dev/null +++ b/iso/.gitignore @@ -0,0 +1,5 @@ +*.swp +*.wim +*.iso +*.exe +*.dll diff --git a/iso/PUT_ISO_FILE_HERE.txt b/iso/PUT_ISO_FILE_HERE.txt new file mode 100644 index 0000000..e69de29 diff --git a/iso/extract-iso.cmd b/iso/extract-iso.cmd new file mode 100644 index 0000000..fa7abe4 --- /dev/null +++ b/iso/extract-iso.cmd @@ -0,0 +1,46 @@ +@echo off +set T=c:\TEMP +set W10=%T%\W10 + +rem =================== +rem COMMANDLINE CHECKS +rem =================== + +IF %1.==. GOTO USAGE + +rem get fullpath of isofile ... +set ISOFILE=%~f1 + +if NOT EXIST %ISOFILE% ( + echo ERROR: file %ISOFILE% not found! + exit /b +) + +rem ===== +rem MAIN +rem ===== + +echo preparing %T% ... +mkdir %T% 1>nul 2>nul +rd /S /Q %W10% 1>nul 2>nul +mkdir %W10% 1>nul 2>nul + +echo mounting disk image (iso) with powershell ... +powershell Mount-DiskImage -ImagePath %ISOFILE% + +echo copying files from image to targetpath %W10% ... +robocopy \\.\CDROM0 %W10% /MIR /256 /NFL /NDL + +echo unmounting disk image (iso) ... +powershell Dismount-Diskimage -ImagePath %ISOFILE% + +rem ===== +rem END +rem ===== +GOTO END + +:USAGE +echo "usage: %0 " + +:END + diff --git a/mount-wim.cmd b/mount-wim.cmd deleted file mode 100644 index 94b6efd..0000000 --- a/mount-wim.cmd +++ /dev/null @@ -1,6 +0,0 @@ -set SOURCES=c:\TEMP\Win10\sources -set MNT=c:\TEMP\WIM - -mkdir %MNT% -dism /Mount-Wim /WimFile:%SOURCES%\install.wim /Name:"Windows 10 Pro" /MountDir:%MNT% - diff --git a/ToolsDownload.cmd b/obsolete/ToolsDownload.cmd similarity index 93% rename from ToolsDownload.cmd rename to obsolete/ToolsDownload.cmd index fa5b501..3e61933 100644 --- a/ToolsDownload.cmd +++ b/obsolete/ToolsDownload.cmd @@ -1,55 +1,55 @@ -@echo off -set LOG=c:\ToolsDownload.txt -set SETUPDIR=c:\Windows\Setup\scripts -set FTPSCRIPT=ToolsDownload.ftp - -set T=c:\TEMP -set TOOLS=c:\tools -set SCRIPTS=c:\scripts - -del /Q %LOG% 1>nul 2>nul -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 some processes... -taskkill /F /IM ssh-agent.exe -taskkill /F /IM ssh.exe - -echo restart explorer ... -taskkill /F /IM explorer.exe & start explorer.exe - -echo deleting %TOOLS% and %SCRIPTS% ... -rd /S /Q %TOOLS% -rd /S /Q %SCRIPTS% - -echo creating directories ... -mkdir %T% 1>nul 2>nul -mkdir %TOOLS% 1>nul 2>nul -mkdir %SCRIPTS% 1>nul 2>nul -mkdir %SCRIPTS%\conf 1>nul 2>nul -mkdir %SCRIPTS%\desktop 1>nul 2>nul -mkdir %SCRIPTS%\tweaks 1>nul 2>nul -mkdir %SCRIPTS%\other 1>nul 2>nul - -echo DISABLE firewall (for FTP access) ... -netsh advfirewall set allprofiles state off - -echo getting TOOLS from webserver ... -cd /D %SETUPDIR% -if EXIST %FTPSCRIPT% ( - echo EXECUTING ftp script %FTPSCRIPT% in path %SETUPDIR% ... - ftp -i -s:%FTPSCRIPT% -) else ( - echo INFO: %FTPSCRIPT% not found in path %SETUPDIR% ! -) - -echo. -date /t -time /t -echo ####### %0 ####### - +@echo off +set LOG=c:\ToolsDownload.txt +set SETUPDIR=c:\Windows\Setup\scripts +set FTPSCRIPT=ToolsDownload.ftp + +set T=c:\TEMP +set TOOLS=c:\tools +set SCRIPTS=c:\scripts + +del /F %LOG% 1>nul 2>nul +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 some processes... +taskkill /F /IM ssh-agent.exe +taskkill /F /IM ssh.exe + +echo restart explorer ... +taskkill /F /IM explorer.exe & start explorer.exe + +echo deleting %TOOLS% and %SCRIPTS% ... +rd /S /Q %TOOLS% +rd /S /Q %SCRIPTS% + +echo creating directories ... +mkdir %T% 1>nul 2>nul +mkdir %TOOLS% 1>nul 2>nul +mkdir %SCRIPTS% 1>nul 2>nul +mkdir %SCRIPTS%\conf 1>nul 2>nul +mkdir %SCRIPTS%\desktop 1>nul 2>nul +mkdir %SCRIPTS%\tweaks 1>nul 2>nul +mkdir %SCRIPTS%\other 1>nul 2>nul + +echo DISABLE firewall (for FTP access) ... +netsh advfirewall set allprofiles state off + +echo getting TOOLS from webserver ... +cd /D %SETUPDIR% +if EXIST %FTPSCRIPT% ( + echo EXECUTING ftp script %FTPSCRIPT% in path %SETUPDIR% ... + ftp -i -s:%FTPSCRIPT% +) else ( + echo INFO: %FTPSCRIPT% not found in path %SETUPDIR% ! +) + +echo. +date /t +time /t +echo ####### %0 ####### + diff --git a/ToolsDownload.ftp b/obsolete/ToolsDownload.ftp similarity index 89% rename from ToolsDownload.ftp rename to obsolete/ToolsDownload.ftp index 384d70b..f5a8560 100644 --- a/ToolsDownload.ftp +++ b/obsolete/ToolsDownload.ftp @@ -1,35 +1,35 @@ -open exabyte-systems.com -w10install -9054c6cf-c54c - -binary - -cd tools -lcd c:\tools -mget * - -cd ../scripts -lcd c:\scripts -mget * - -cd conf -lcd c:\scripts\conf -mget * -cd .. - -cd other -lcd c:\scripts\other -mget * -cd .. - -cd desktop -lcd c:\scripts\desktop -mget * -cd .. - -cd tweaks -lcd c:\scripts\tweaks -mget * - -bye - +open exabyte-systems.com +w10install +9054c6cf-c54c + +binary + +cd tools +lcd c:\tools +mget * + +cd ../scripts +lcd c:\scripts +mget * + +cd conf +lcd c:\scripts\conf +mget * +cd .. + +cd other +lcd c:\scripts\other +mget * +cd .. + +cd desktop +lcd c:\scripts\desktop +mget * +cd .. + +cd tweaks +lcd c:\scripts\tweaks +mget * + +bye + diff --git a/reduced-remove.cmd b/reduced-remove.cmd deleted file mode 100644 index 1532e56..0000000 --- a/reduced-remove.cmd +++ /dev/null @@ -1,179 +0,0 @@ -set MNT=c:\TEMP\WIM - -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 -install_wim_tweak.exe /p %MNT% /c "Containers-DisposableClientVM" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Guest-Gated" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-OptionalFeature" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Server" /r /n -install_wim_tweak.exe /p %MNT% /c "DeviceAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "LanguageFeatures-WordBreaking" /r /n -install_wim_tweak.exe /p %MNT% /c "Media-FaceAnalysis" /r /n -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 -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-AllJoyn" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-AllowTelemetry" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-onecore-applicationmodel-sync-desktop" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ApplicationModel-Sync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Biometrics" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-BITS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-CameraCaptureUI" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-NFC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-Serial" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Containers" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DebugCore" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DeviceUpdateCenter" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-EnergyEstimationEngine" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ESENT" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Gaming" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Indexer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-InkPlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Maps" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Miracast" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingCommon" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingReceiver" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingTransmitter" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-MFPMP" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Networking-MobileBroadbandApi" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-NowPlayingSessionManager" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-PointOfService" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-RemoteDesktopServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Sensors" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-SpeechComponents" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Onecore-SPP-VirtualDevice" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Tethering" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-TroubleShooting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-UserDataAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Wallet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-WebService" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-PPIProjection" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-UtilityVM" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-3DAudio" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ApiSetSchemaExtension-HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppCompat" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppManagement" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppServerClient" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Backup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Basic-Http-Minio" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BioEnrollment" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BITS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Branding-Enterprise" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Browser" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BusinessScanning" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Casting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-AssignedAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-EmbeddedExp" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-Optional-Features" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-ShellLauncher" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Common-Modem" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-COM-MSMQ" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Compression" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContactSupport" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContentDeliveryManager" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-CoreSystem-DebugTransports" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Cortana" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DataCenterBridging" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DeviceSync" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-directoryservices-adam" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DirectoryServices-ADAM" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-EnterpriseClientSync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-FodMetadata" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Geolocation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Hello-Face" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Help" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HVSI-Components" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-HypervisorPlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-VirtualMachinePlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Identity-Foundation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-IIS-WebServer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-International" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-InternetExplorer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Internet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Killbits" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageEnablingComponents" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageFeatures" /r /n -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 -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer" /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-MiracastView" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileBroadband" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileCore" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobilePC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MRT10" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-MMC-OptGroup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-msmq" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MultiPoint-Connector" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-Connectivity-Assistant" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NetworkDiagnostics" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-QoS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NFS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Notepad-FoD" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-notepad" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Not-Supported-On-LTSB" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OfflineFiles" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneCore-Containers" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneDrive" /r /n - -rem ESSENTIAL (do NOT remove): - -rem Microsoft-Client-License-Platform -rem Microsoft-Windows-20H2Enablement -rem Microsoft-Windows-Client-Desktop-Required -rem Microsoft-Windows-Client-LanguagePack -rem Microsoft-Windows-Common-Foundation -rem Microsoft-Windows-Common-RegulatedPackages -rem Microsoft-Windows-ConfigCI -rem Microsoft-Windows-Desktop-BCDTemplate -rem Microsoft-Windows-DesktopFileExplorer -rem Microsoft-Windows-DeviceGuard-GPEXT -rem Microsoft-Windows-EditionPack-Professional -rem Microsoft-Windows-EditionSpecific-Professional -rem Microsoft-Windows-Editions-Professional -rem Microsoft-Windows-Embedded-UnifiedWriteFilterCSP -rem Microsoft-Windows-Enterprise-Desktop-Share -rem Microsoft-Windows-FCI-Client -rem Microsoft-Windows-Foundation -rem Microsoft-Windows-GroupPolicy-ClientExtensions -rem Microsoft-Windows-GroupPolicy-ClientTools -rem Microsoft-Windows-Holographic-Desktop -rem Microsoft-Windows-HVSI -rem Microsoft-Windows-MSPaint-FoD -rem Microsoft-Windows-NetFx -rem Microsoft-Windows-NetFx2 -rem Microsoft-Windows-NetFx3 -rem Microsoft-Windows-NetFx4 -rem Microsoft-Windows-NewTabPageHost -rem Microsoft-Windows-PowerShell-ISE-FOD -rem Microsoft-Windows-Product-Data-EKB -rem Microsoft-Windows-ProfessionalEdition -rem Microsoft-Windows-Professional-SPP-Components -rem Microsoft-Windows-RegulatedPackages -rem Microsoft-Windows-Required-ShellExperiences-Desktop -rem Microsoft-Windows-Runtime-Metadata-Desktop -rem Microsoft-Windows-SecureStartup -rem Microsoft-Windows-Security-SPP-Component-SKU -rem Microsoft-Windows-ShellExperienceHost -rem Microsoft-Windows-WMPNetworkSharingService - -rem CLEANUP: -del SOFTWAREBKP 1>nul 2>nul - -rem export remaining PACKAGE names ... -install_wim_tweak /p %MNT% /l -dir Packages.txt - diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 0000000..5988f97 --- /dev/null +++ b/scripts/.gitignore @@ -0,0 +1,5 @@ +*.swp +*.wim +*.iso +*.exe +*.dll diff --git a/scripts/cleanup-startmenu.cmd b/scripts/cleanup-startmenu.cmd new file mode 100644 index 0000000..a5480ba --- /dev/null +++ b/scripts/cleanup-startmenu.cmd @@ -0,0 +1,24 @@ +@echo off + +echo ####### %0 ####### + +rem kill system processes and wait a short time ... +taskkill /f /im StartMenuExperienceHost.exe +taskkill /f /im shellexperiencehost.exe +taskkill /f /im explorer.exe + +ping 127.0.0.1 -n 3 >nul 2>nul + +rem kill dead entries in start menu and kill old live tiles ... +@echo on +del %LOCALAPPDATA%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\* /q +del %LOCALAPPDATA%\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\* /q +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore" /V ResetCache /T REG_DWORD /D 1 /F +@echo off + +rem start explorer again ... +ping 127.0.0.1 -n 1 >nul 2>nul +start explorer + +echo ####### %0 ####### + diff --git a/scripts/cleanup-tiles.ps1 b/scripts/cleanup-tiles.ps1 new file mode 100644 index 0000000..0dd30f0 --- /dev/null +++ b/scripts/cleanup-tiles.ps1 @@ -0,0 +1,63 @@ +# +# this script loads a tile layout for the +# start menu with NO tiles at all! +# ( = deletes all tiles ) +# + +$LAYOUT='C:\Windows\StartLayout.xml' + +write-host '#######',(split-path $PSCommandPath -Leaf),'#######' + +echo "delete layout file if it already exists ..." +If(Test-Path $LAYOUT) { + Remove-Item $LAYOUT +} + +echo "create a blank layout file [ $LAYOUT ] ..." +echo "" > $LAYOUT +echo " " >> $LAYOUT +echo " " >> $LAYOUT +echo " " >> $LAYOUT +echo " " >> $LAYOUT +echo " " >> $LAYOUT +echo " " >> $LAYOUT +echo "" >> $LAYOUT + +$regAliases = @("HKLM", "HKCU") + +# assign the start layout and force it to apply with +# "LockedStartLayout" at both the machine and user level ... +echo "assign the start layout AND apply it ..." +foreach ($regAlias in $regAliases) { + $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows" + $keyPath = $basePath + "\Explorer" + IF(!(Test-Path -Path $keyPath)) { + New-Item -Path $basePath -Name "Explorer" + } + Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1 + Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value "$LAYOUT" +} + +# restart Explorer, open the start menu (necessary to load the new layout), +# and give it a few seconds to process ... +Start-Sleep -s 3 +echo "restart explorer ..." +Stop-Process -name explorer +Start-Sleep -s 3 +$wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}') +Start-Sleep -s 3 + +# enable the ability to pin items again by disabling "LockedStartLayout" ... +foreach ($regAlias in $regAliases) { + $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows" + $keyPath = $basePath + "\Explorer" + Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0 +} + +# restart Explorer and delete the layout file ... +echo "restart explorer ..." +Stop-Process -name explorer +Remove-Item $LAYOUT + +write-host '#######',(split-path $PSCommandPath -Leaf),'#######' + diff --git a/scripts/deploy/firefox/local-settings.js b/scripts/deploy/firefox/local-settings.js new file mode 100644 index 0000000..43a9768 --- /dev/null +++ b/scripts/deploy/firefox/local-settings.js @@ -0,0 +1,2 @@ +pref("general.config.filename", "mozilla.cfg"); +pref("general.config.obscure_value", 0); diff --git a/scripts/deploy/firefox/mozilla.cfg b/scripts/deploy/firefox/mozilla.cfg new file mode 100644 index 0000000..f69feba --- /dev/null +++ b/scripts/deploy/firefox/mozilla.cfg @@ -0,0 +1,75 @@ +// Mozilla GLOBAL Preferences +// + +defaultPref("app.normandy.first_run", false); +defaultPref("app.shield.optoutstudies.enabled", false); +lockPref("app.update.service.enabled", false); +defaultPref("browser.bookmarks.restore_default_bookmarks", false); +defaultPref("browser.contentblocking.category", "standard"); +defaultPref("browser.ctrlTab.recentlyUsedOrder", false); +lockPref("browser.download.useDownloadDir", false); +defaultPref("browser.download.viewableInternally.typeWasRegistered.svg", true); +defaultPref("browser.download.viewableInternally.typeWasRegistered.webp", true); +defaultPref("browser.download.viewableInternally.typeWasRegistered.xml", true); +lockPref("browser.formfill.enable", false); +defaultPref("browser.laterrun.enabled", true); +defaultPref("browser.launcherProcess.enabled", true); +defaultPref("browser.messaging-system.whatsNewPanel.enabled", false); +lockPref("browser.newtabpage.activity-stream.feeds.section.highlights", false); +lockPref("browser.newtabpage.activity-stream.feeds.section.topstories", false); +lockPref("browser.newtabpage.activity-stream.feeds.snippets", false); +lockPref("browser.newtabpage.activity-stream.feeds.topsites", false); +lockPref("browser.newtabpage.activity-stream.section.highlights.includeBookmarks", false); +lockPref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false); +lockPref("browser.newtabpage.activity-stream.section.highlights.includePocket", false); +lockPref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false); +defaultPref("browser.newtabpage.activity-stream.showSponsored", false); +defaultPref("browser.newtabpage.enabled", true); +defaultPref("browser.privatebrowsing.autostart", false); +defaultPref("browser.search.region", "DE"); +lockPref("browser.search.suggest.enabled", false); +defaultPref("browser.shell.checkDefaultBrowser", false); +defaultPref("browser.shell.didSkipDefaultBrowserCheckOnFirstRun", true); +lockPref("browser.startup.homepage", "exabyte.systems"); +defaultPref("browser.tabs.warnOnClose", false); +lockPref("browser.urlbar.suggest.bookmark", false); +lockPref("browser.urlbar.suggest.history", false); +lockPref("browser.urlbar.suggest.openpage", false); +lockPref("browser.urlbar.suggest.searches", false); +lockPref("browser.urlbar.suggest.topsites", false); +defaultPref("datareporting.healthreport.uploadEnabled", false); +lockPref("extensions.update.autoUpdateDefault", false); +defaultPref("layout.spellcheckDefault", 0); +lockPref("network.cookie.lifetimePolicy", 0); +defaultPref("permissions.default.camera", 2); +defaultPref("permissions.default.desktop-notification", 2); +defaultPref("permissions.default.geo", 2); +defaultPref("permissions.default.microphone", 2); +defaultPref("permissions.default.xr", 2); +defaultPref("pref.general.disable_button.default_browser", false); +defaultPref("pref.privacy.disable_button.cookie_exceptions", false); +lockPref("places.history.enabled", false); +lockPref("privacy.clearOnShutdown.cache", true); +lockPref("privacy.clearOnShutdown.cookies", false); +lockPref("privacy.clearOnShutdown.downloads", true); +lockPref("privacy.clearOnShutdown.formdata", true); +lockPref("privacy.clearOnShutdown.history", true); +lockPref("privacy.clearOnShutdown.offlineApps", true); +lockPref("privacy.clearOnShutdown.sessions", true); +lockPref("privacy.clearOnShutdown.siteSettings", false); +lockPref("privacy.history.custom", true); +lockPref("privacy.sanitize.sanitizeOnShutdown", true); +lockPref("privacy.cpd.offlineApps", true); +lockPref("privacy.cpd.siteSettings", true); +defaultPref("sanity-test.advanced-layers", true); +defaultPref("sanity-test.running", false); +defaultPref("sanity-test.webrender.force-disabled", false); +lockPref("signon.autofillForms", false); +lockPref("signon.generation.enabled", false); +lockPref("signon.management.page.breach-alerts.enabled", false); +lockPref("signon.rememberSignons", false); +lockPref("signon.usage.hasEntry", false); +defaultPref("toolkit.telemetry.pioneer-new-studies-available", false); +defaultPref("toolkit.telemetry.reportingpolicy.firstRun", false); +defaultPref("trailhead.firstrun.didSeeAboutWelcome", true); + diff --git a/scripts/deploy/killiconcache.cmd b/scripts/deploy/killiconcache.cmd new file mode 100644 index 0000000..b416c67 --- /dev/null +++ b/scripts/deploy/killiconcache.cmd @@ -0,0 +1,6 @@ +@echo off +taskkill /f /IM explorer.exe +del /f /s /q %LocalappData%\Microsoft\Windows\Explorer\*.* +del /f /s /q %LocalappData%\Iconcache.db +shutdown -g -t 0 + diff --git a/scripts/deploy/logon.cmd b/scripts/deploy/logon.cmd new file mode 100644 index 0000000..c229089 --- /dev/null +++ b/scripts/deploy/logon.cmd @@ -0,0 +1,18 @@ +@echo off + +set TOOLS=c:\tools + +echo ####### %0 ####### + +echo remove wallpaper... +reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f +RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters + +echo set desktop colour... +%TOOLS%\setbgcol + +echo starting BGInfo .... +%TOOLS%\bginfo\bginfo64.exe %TOOLS%\bginfo\config.bgi /NOLICPROMPT /silent /timer:0 + +echo ####### %0 ####### + diff --git a/scripts/deploy/pbc.cmd b/scripts/deploy/pbc.cmd new file mode 100644 index 0000000..a5d0a03 --- /dev/null +++ b/scripts/deploy/pbc.cmd @@ -0,0 +1,15 @@ +@echo off + +IF %1.==. GOTO USAGE + +set WORK=c:\TEMP +set SOURCEFILE=%1 + +pbcompiler /EXE %WORK%\%1.exe /CONSOLE %SOURCEFILE%.pb +GOTO END + +:USAGE +echo "usage: %0 " + +:END + diff --git a/scripts/deploy/ssh_config b/scripts/deploy/ssh_config new file mode 100644 index 0000000..0488c0d --- /dev/null +++ b/scripts/deploy/ssh_config @@ -0,0 +1,9 @@ +ControlMaster=auto +ControlPersist=60s +ServerAliveInterval=30 +StrictHostKeyChecking=no +UpdateHostKeys=no +CheckHostIP=no +UserKnownHostsFile=/dev/null +LogLevel=ERROR + diff --git a/scripts/deploy/start-ssh-agent.cmd b/scripts/deploy/start-ssh-agent.cmd new file mode 100644 index 0000000..cb039af --- /dev/null +++ b/scripts/deploy/start-ssh-agent.cmd @@ -0,0 +1,18 @@ +@echo off +set TOOLS=c:\tools + +rem set SOCKET for "ssh-add" ... +echo set SSH_AUTH_SOCK=%TEMP%\ssh-agent.txt +set SSH_AUTH_SOCK=%TEMP%\ssh-agent.txt +set GIT_SSH=%TOOLS%\git\usr\bin\ssh.exe + +tasklist /FI "USERNAME eq %USERNAME%" /FI "IMAGENAME eq ssh-agent.exe" | findstr ssh-agent.exe +IF %ERRORLEVEL% GTR 0 ( + attrib -S %TEMP%\ssh-agent.txt + del /f /s /q %TEMP%\ssh-agent.txt 1>nul 2>nul + ssh-agent -a %TEMP%\ssh-agent.txt + ssh-add +) ELSE ( + echo SSH agent is running. +) + diff --git a/scripts/disable-autologon.cmd b/scripts/disable-autologon.cmd new file mode 100644 index 0000000..8e41e4f --- /dev/null +++ b/scripts/disable-autologon.cmd @@ -0,0 +1,11 @@ +@echo off + +echo ####### %0 ####### + +echo disabling autologon for admin ... +reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f +reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f +reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f + +echo ####### %0 ####### + diff --git a/scripts/icons/CMD.lnk b/scripts/icons/CMD.lnk new file mode 100644 index 0000000..99a6dbd Binary files /dev/null and b/scripts/icons/CMD.lnk differ diff --git a/scripts/icons/PowerShell.lnk b/scripts/icons/PowerShell.lnk new file mode 100644 index 0000000..aef8eb7 Binary files /dev/null and b/scripts/icons/PowerShell.lnk differ diff --git a/scripts/icons/RDP.lnk b/scripts/icons/RDP.lnk new file mode 100644 index 0000000..ba37125 Binary files /dev/null and b/scripts/icons/RDP.lnk differ diff --git a/scripts/icons/TOTALCMD.lnk b/scripts/icons/TOTALCMD.lnk new file mode 100644 index 0000000..c7c624d Binary files /dev/null and b/scripts/icons/TOTALCMD.lnk differ diff --git a/scripts/icons/notepad++.lnk b/scripts/icons/notepad++.lnk new file mode 100644 index 0000000..58e89ec Binary files /dev/null and b/scripts/icons/notepad++.lnk differ diff --git a/scripts/install-antivir.cmd b/scripts/install-antivir.cmd new file mode 100644 index 0000000..27a9384 --- /dev/null +++ b/scripts/install-antivir.cmd @@ -0,0 +1,21 @@ +@echo off +set T=c:\TEMP +mkdir %T% 1>nul 2>nul +cd /D %T% + +set EXE=F-SecureNetworkInstaller-AV_AVTR20F930_.exe +set URL="ftp://w10install:9054c6cf-c54c@exabyte-systems.com/software/%EXE%" + +echo ####### %0 ####### + +echo download ... +curl --ftp-pasv %URL% --output %EXE% + +echo installing F-Secure Antivirus ... +%EXE% --silent + +rem cleanup ... +del /Q %EXE% 1>nul 2>nul + +echo ####### %0 ####### + diff --git a/scripts/install-desktopicons.cmd b/scripts/install-desktopicons.cmd new file mode 100644 index 0000000..9ed72ae --- /dev/null +++ b/scripts/install-desktopicons.cmd @@ -0,0 +1,12 @@ +@echo off + +set SOURCE=desktopicons +set TARGET=c:\Users\Public\Desktop + +echo ####### %0 ####### + +echo copying desktop icons ... +xcopy /CDI /HERBY %SOURCE% %TARGET% + +echo ####### %0 ####### + diff --git a/scripts/install-firefox.cmd b/scripts/install-firefox.cmd new file mode 100644 index 0000000..3f3badc --- /dev/null +++ b/scripts/install-firefox.cmd @@ -0,0 +1,82 @@ +@echo off +set T=c:\TEMP +mkdir %T% 1>nul 2>nul +cd /D %T% + +set CONF=c:\scripts\conf +set URL="ftp://w10install:9054c6cf-c54c@exabyte-systems.com/software/firefox" + +set MSI=Firefox_Setup_83.0b9.msi +set FIREFOXBASE="C:\Program Files\Mozilla Firefox" + +set BADGERFILE=privacy_badger-2020.12.10.xpi +set BADGERTARGET=jid1-MnnxcxisBPnSXQ@jetpack.xpi + +set UBLOCKFILE=ublock_origin-1.32.0.xpi +set UBLOCKTARGET=uBlock0@raymondhill.net.xpi + +set PASSWORD1FILE=1password-1.22.3.xpi +set PASSWORD1TARGET={d634138d-c276-4fc8-924b-40a0ea21d284}.xpi + +set BITWARDENFILE=bitwarden-1.47.1.xpi +set BITWARDENTARGET={446900e4-71c2-419f-a6a7-df9c091e268b}.xpi + +echo ####### %0 ####### + +echo download ... +curl --ftp-pasv %URL%/%MSI% --output %MSI% + +@echo on +msiexec /i %MSI% /passive +@echo off + +rem copy config ... +copy /Y %CONF%\local-settings.js %FIREFOXBASE%\defaults\pref +copy /Y %CONF%\mozilla.cfg %FIREFOXBASE% + +echo disabling FireFox updates (all users) ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^ + /v DisableAppUpdate ^ + /t REG_DWORD ^ + /d 1 ^ + /f + +echo enabling FireFox Bookmarks-bar for all users ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^ + /v DisplayBookmarksToolbar ^ + /t REG_DWORD ^ + /d 1 ^ + /f + +echo creating extensions directory ... +mkdir %FIREFOXBASE%\distribution\extensions + +echo download ... +curl --ftp-pasv %URL%/%BADGERFILE% --output %BADGERFILE% + +echo installing badger(eff) to fight internet bullshit ... +move /Y %BADGERFILE% %FIREFOXBASE%\distribution\extensions\%BADGERTARGET% + +echo download ... +curl --ftp-pasv %URL%/%UBLOCKFILE% --output %UBLOCKFILE% + +echo installing uBlock to fight even more internet bullshit ... +move /Y %UBLOCKFILE% %FIREFOXBASE%\distribution\extensions\%UBLOCKTARGET% + +echo download ... +curl --ftp-pasv %URL%/%PASSWORD1FILE% --output %PASSWORD1FILE% + +echo installing 1Password plugin ... +move /Y %PASSWORD1FILE% %FIREFOXBASE%\distribution\extensions\%PASSWORD1TARGET% + +echo download ... +curl --ftp-pasv %URL%/%BITWARDENFILE% --output %BITWARDENFILE% + +echo installing Bitwarden plugin ... +move /Y %BITWARDENFILE% %FIREFOXBASE%\distribution\extensions\%BITWARDENTARGET% + +rem cleanup ... +del /Q %MSI% 1>nul 2>nul + +echo ####### %0 ####### + diff --git a/scripts/install-git.cmd b/scripts/install-git.cmd new file mode 100644 index 0000000..0c18f3f --- /dev/null +++ b/scripts/install-git.cmd @@ -0,0 +1,19 @@ +@echo off +set T=c:\TEMP +mkdir %T% 1>nul 2>nul +cd /D %T% + +set CONFIG=install-git.txt +set EXE=..\software\Git-2.29.0-64-bit.exe + +echo ####### %0 ####### + +echo killing ssh processes... +taskkill /F /IM ssh-agent.exe +taskkill /F /IM ssh.exe + +echo installing GIT ... +%EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo ####### %0 ####### + diff --git a/scripts/install-git.txt b/scripts/install-git.txt new file mode 100644 index 0000000..a8de56b --- /dev/null +++ b/scripts/install-git.txt @@ -0,0 +1,23 @@ +[Setup] +Lang=default +Dir=c:\tools\git +Group=Git +NoIcons=1 +SetupType=default +Components=gitlfs +Tasks= +EditorOption=CustomEditor +CustomEditorPath=c:\tools\vim.exe +DefaultBranchOption= +PathOption=CmdTools +SSHOption=OpenSSH +TortoiseOption=false +CURLOption=OpenSSL +CRLFOption=CRLFCommitAsIs +BashTerminalOption=ConHost +GitPullBehaviorOption=Merge +UseCredentialManager=Disabled +PerformanceTweaksFSCache=Disabled +EnableSymlinks=Disabled +EnablePseudoConsoleSupport=Disabled + diff --git a/scripts/install-logonscript.cmd b/scripts/install-logonscript.cmd new file mode 100644 index 0000000..4a48342 --- /dev/null +++ b/scripts/install-logonscript.cmd @@ -0,0 +1,21 @@ +@echo off + +set SOURCE=deploy/logon.cmd +set TARGET="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup" + +echo ####### %0 ####### + +echo create link for logon script... +del /Q /F %TARGET%\logon* 1>nul 2>nul +mklink %TARGET%\logon.cmd %SOURCE% + +echo create link on desktop... +del /Q /F "%USERPROFILE%\Desktop\Autostart*" 1>nul 2>nul +rmdir /Q "%USERPROFILE%\Desktop\Autostart" 1>nul 2>nul +mklink /D "%USERPROFILE%\Desktop\Autostart" %TARGET% + +echo execute logon script... +call %TARGET%\logon.cmd + +echo ####### %0 ####### + diff --git a/scripts/install-openshell.cmd b/scripts/install-openshell.cmd new file mode 100644 index 0000000..db2d005 --- /dev/null +++ b/scripts/install-openshell.cmd @@ -0,0 +1,25 @@ +@echo off +set T=c:\TEMP +mkdir %T% 1>nul 2>nul +cd /D %T% + +set EXE=OpenShellSetup_4_4_160.exe +set MSI=OpenShellSetup64_4_4_160.msi +set URL="ftp://w10install:9054c6cf-c54c@exabyte-systems.com/software/%EXE%" + +echo ####### %0 ####### + +echo download ... +curl --ftp-pasv %URL% --output %EXE% + +@echo on +%EXE% extract64 +msiexec /i %MSI% ADDLOCAL=StartMenu,ClassicExplorer /passive +@echo off + +rem cleanup ... +del /Q %MSI% 1>nul 2>nul +del /Q %EXE% 1>nul 2>nul + +echo ####### %0 ####### + diff --git a/scripts/install-powertweaks.cmd b/scripts/install-powertweaks.cmd new file mode 100644 index 0000000..074066f --- /dev/null +++ b/scripts/install-powertweaks.cmd @@ -0,0 +1,9 @@ +@echo off + +echo ####### %0 ####### + +echo disable hibernate ... +powercfg -H off + +echo ####### %0 ####### + diff --git a/scripts/install-tweaks.cmd b/scripts/install-tweaks.cmd new file mode 100644 index 0000000..d113c73 --- /dev/null +++ b/scripts/install-tweaks.cmd @@ -0,0 +1,14 @@ +@echo off +set TARGET=c:\scripts\tweaks + +echo ####### %0 ####### + +IF EXIST "%TARGET%\*.reg" ( + FOR /F "tokens=*" %%A IN ('DIR /B "%TARGET%\*.reg"') DO ( + echo "%TARGET%\%%A" + regedit /S "%TARGET%\%%A" + ) +) + +echo ####### %0 ####### + diff --git a/scripts/tweaks/add_seconds_to_clock.reg b/scripts/tweaks/add_seconds_to_clock.reg new file mode 100644 index 0000000..081b4af Binary files /dev/null and b/scripts/tweaks/add_seconds_to_clock.reg differ diff --git a/scripts/tweaks/contextmenu_explorer.reg b/scripts/tweaks/contextmenu_explorer.reg new file mode 100644 index 0000000..da5cf21 Binary files /dev/null and b/scripts/tweaks/contextmenu_explorer.reg differ diff --git a/scripts/tweaks/contextmenu_paint.reg b/scripts/tweaks/contextmenu_paint.reg new file mode 100644 index 0000000..e7d06dc Binary files /dev/null and b/scripts/tweaks/contextmenu_paint.reg differ diff --git a/scripts/tweaks/contextmenu_resourcemonitor.reg b/scripts/tweaks/contextmenu_resourcemonitor.reg new file mode 100644 index 0000000..057a76d Binary files /dev/null and b/scripts/tweaks/contextmenu_resourcemonitor.reg differ diff --git a/scripts/tweaks/contextmenu_snippingtool.reg b/scripts/tweaks/contextmenu_snippingtool.reg new file mode 100644 index 0000000..d1568cb Binary files /dev/null and b/scripts/tweaks/contextmenu_snippingtool.reg differ diff --git a/scripts/tweaks/contextmenu_systemsettings.reg b/scripts/tweaks/contextmenu_systemsettings.reg new file mode 100644 index 0000000..fe6061c Binary files /dev/null and b/scripts/tweaks/contextmenu_systemsettings.reg differ diff --git a/scripts/tweaks/contextmenu_systemstart.reg b/scripts/tweaks/contextmenu_systemstart.reg new file mode 100644 index 0000000..f68bf81 Binary files /dev/null and b/scripts/tweaks/contextmenu_systemstart.reg differ diff --git a/scripts/tweaks/contextmenu_taskmanager.reg b/scripts/tweaks/contextmenu_taskmanager.reg new file mode 100644 index 0000000..777a75e Binary files /dev/null and b/scripts/tweaks/contextmenu_taskmanager.reg differ diff --git a/scripts/tweaks/contextmenu_winversion.reg b/scripts/tweaks/contextmenu_winversion.reg new file mode 100644 index 0000000..8515b83 Binary files /dev/null and b/scripts/tweaks/contextmenu_winversion.reg differ diff --git a/scripts/tweaks/deactivate_UAC.reg b/scripts/tweaks/deactivate_UAC.reg new file mode 100644 index 0000000..56a7e38 Binary files /dev/null and b/scripts/tweaks/deactivate_UAC.reg differ diff --git a/scripts/tweaks/disable_dumpstack_logging.reg b/scripts/tweaks/disable_dumpstack_logging.reg new file mode 100644 index 0000000..f9005c4 Binary files /dev/null and b/scripts/tweaks/disable_dumpstack_logging.reg differ diff --git a/scripts/tweaks/explorer_remove_onedrive.reg b/scripts/tweaks/explorer_remove_onedrive.reg new file mode 100644 index 0000000..de71023 Binary files /dev/null and b/scripts/tweaks/explorer_remove_onedrive.reg differ diff --git a/scripts/tweaks/fast_reboot_and_shutdown.reg b/scripts/tweaks/fast_reboot_and_shutdown.reg new file mode 100644 index 0000000..53a76c7 Binary files /dev/null and b/scripts/tweaks/fast_reboot_and_shutdown.reg differ diff --git a/scripts/tweaks/systemsettings_remove_onlinetips.reg b/scripts/tweaks/systemsettings_remove_onlinetips.reg new file mode 100644 index 0000000..5671cfb --- /dev/null +++ b/scripts/tweaks/systemsettings_remove_onlinetips.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] +"AllowOnlineTips"=dword:00000000 + diff --git a/scripts/tweaks/win10_disable_lockscreen.reg b/scripts/tweaks/win10_disable_lockscreen.reg new file mode 100644 index 0000000..84000dc Binary files /dev/null and b/scripts/tweaks/win10_disable_lockscreen.reg differ diff --git a/scripts/uninstall-apps.ps1 b/scripts/uninstall-apps.ps1 new file mode 100644 index 0000000..5484ad5 --- /dev/null +++ b/scripts/uninstall-apps.ps1 @@ -0,0 +1,16 @@ +# REMOVE all applications except the Store ... + +write-host '#######',(split-path $PSCommandPath -Leaf),'#######' + +$ErrorActionPreference = "SilentlyContinue" + +# $progressPreference = 'SilentlyContinue' +Get-AppxPackage -AllUsers | + where-object {$_.name -notlike "*store*"} | + Remove-AppxPackage +Get-AppxProvisionedPackage -online | + where-object {$_.name -notlike "*store*"} | + Remove-AppxProvisionedPackage -online + +write-host '#######',(split-path $PSCommandPath -Leaf),'#######' + diff --git a/scripts/uninstall-edge.cmd b/scripts/uninstall-edge.cmd new file mode 100644 index 0000000..886f4b5 --- /dev/null +++ b/scripts/uninstall-edge.cmd @@ -0,0 +1,13 @@ +@echo off + +set EDGEROOT="C:\Program Files (x86)\Microsoft\Edge" + +echo ####### %0 ####### + +cd /D C:\ +cd %EDGEROOT%\Application\8*\Installer +setup.exe --uninstall --system-level --verbose-logging --force-uninstall +rd /S /Q %EDGEROOT% + +echo ####### %0 ####### + diff --git a/scripts/uninstall-onedrive.cmd b/scripts/uninstall-onedrive.cmd new file mode 100644 index 0000000..c0c2418 --- /dev/null +++ b/scripts/uninstall-onedrive.cmd @@ -0,0 +1,33 @@ +@echo off + +set x86=%SYSTEMROOT%\System32\OneDriveSetup.exe +set x64=%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe + +echo ####### %0 ####### + +echo KILLING OneDrive ... +taskkill /f /im OneDrive.exe > NUL 2>&1 +ping 127.0.0.1 -n 5 > NUL 2>&1 + +echo UNINSTALLING OneDrive ... +if exist %x64% ( + %x64% /uninstall +) else ( + %x86% /uninstall +) +ping 127.0.0.1 -n 5 > NUL 2>&1 + +echo CLEANUP OneDrive ... +rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1 +rd "C:\OneDriveTemp" /Q /S > NUL 2>&1 +rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1 +rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1 + +echo remove OneDrive from explorer ... +reg DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1 +reg DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1 +reg DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f > NUL 2>&1 +reg DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f > NUL 2>&1 + +echo ####### %0 ####### + diff --git a/source/.gitignore b/source/.gitignore new file mode 100644 index 0000000..5988f97 --- /dev/null +++ b/source/.gitignore @@ -0,0 +1,5 @@ +*.swp +*.wim +*.iso +*.exe +*.dll diff --git a/umount-wim.cmd b/umount-wim.cmd deleted file mode 100644 index bbf6898..0000000 --- a/umount-wim.cmd +++ /dev/null @@ -1,6 +0,0 @@ -set SOURCES=c:\TEMP\Win10\sources -set MNT=c:\TEMP\WIM - -dism /Unmount-Wim /MountDir:%MNT% /Discard -dism /Cleanup-Wim - diff --git a/wim/.gitignore b/wim/.gitignore new file mode 100644 index 0000000..5988f97 --- /dev/null +++ b/wim/.gitignore @@ -0,0 +1,5 @@ +*.swp +*.wim +*.iso +*.exe +*.dll diff --git a/wim/RunScriptTest.cmd b/wim/RunScriptTest.cmd new file mode 100644 index 0000000..c1dc93c --- /dev/null +++ b/wim/RunScriptTest.cmd @@ -0,0 +1,20 @@ +@echo off +set SCRIPTS=%WINDIR%\Setup\scripts +set LOG1=C:\SetupComplete.txt +set LOG2=C:\StartCustomSetup.txt + +rem prepare ... +mkdir %SCRIPTS% 1>nul 2>nul +del /F %LOG1% 1>nul 2>nul +del /F %LOG2% 1>nul 2>nul + +echo ####### %0 ####### + +copy /Y SetupComplete.cmd %SCRIPTS% +copy /Y StartCustomSetup.cmd %SCRIPTS% + +echo ####### %0 ####### + +call %SCRIPTS%\SetupComplete.cmd +call %SCRIPTS%\StartCustomSetup.cmd + diff --git a/SetupComplete.cmd b/wim/SetupComplete.cmd similarity index 73% rename from SetupComplete.cmd rename to wim/SetupComplete.cmd index d98a51d..08422af 100644 --- a/SetupComplete.cmd +++ b/wim/SetupComplete.cmd @@ -1,46 +1,34 @@ -@echo off -set LOG=c:\SetupComplete.txt -set SETUPDIR=c:\Windows\Setup\scripts -set FTPSCRIPT=ToolsDownload.cmd - -del /Q %LOG% 1>nul 2>nul -if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1 -shift /1 - -echo ####### %0 ####### -date /t -time /t -echo. - -echo Disable Windows "Hi" Animation ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^ - /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^ - /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f -echo. - -rem allow execution of any powershell script ... -powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine" -powershell -Command ^ -"$R=Get-ExecutionPolicy ; if ($R -eq 'Bypass') { ^ - write-host 'POWERSHELL: Execution Policy was set to BYPASS' ^ -} ^ - else { ^ - write-host 'ERROR: CANNOT SET Execution Policy to BYPASS !' ^ -}" -echo. - -rem call initial download script ... -cd /D %SETUPDIR% -if EXIST %FTPSCRIPT% ( - echo EXECUTING %FTPSCRIPT% ... - call %FTPSCRIPT% -) else ( - echo INFO: %FTPSCRIPT% not found! -) - -echo. -date /t -time /t -echo ####### %0 ####### - +@echo off +set LOG=c:\SetupComplete.txt + +del /F %LOG% 1>nul 2>nul +if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1 +shift /1 + +echo ####### %0 ####### +date /t +time /t +echo. + +echo Disable Windows "Hi" Animation ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^ + /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^ + /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f +echo. + +rem allow execution of any powershell script ... +powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine" +powershell -Command ^ +"$R=Get-ExecutionPolicy ; if ($R -eq 'Bypass') { ^ + write-host 'POWERSHELL: Execution Policy was set to BYPASS' ^ +} ^ + else { ^ + write-host 'ERROR: CANNOT SET Execution Policy to BYPASS !' ^ +}" +echo. + +date /t +time /t +echo ####### %0 ####### + diff --git a/wim/StartCustomSetup.cmd b/wim/StartCustomSetup.cmd new file mode 100644 index 0000000..8f6ed9a --- /dev/null +++ b/wim/StartCustomSetup.cmd @@ -0,0 +1,32 @@ +@echo off +set LOG=c:\StartCustomSetup.txt +set BATCH=CustomSetup.cmd + +if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1 +shift /1 + +echo ####### %0 ####### +date /t +time /t +echo. + +for %%D in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do ( + + if EXIST %%D:\%BATCH% ( + echo EXECUTING %%D:\%BATCH% ... + cd /D %%D:\ + start cmd /C %BATCH% + GOTO END + ) else ( + echo INFO: %BATCH% not found on drive %%D! + ) + +) + +:END + +echo. +date /t +time /t +echo ####### %0 ####### + diff --git a/export-image.cmd b/wim/export-image.cmd similarity index 62% rename from export-image.cmd rename to wim/export-image.cmd index a4b41d6..722d481 100644 --- a/export-image.cmd +++ b/wim/export-image.cmd @@ -1,11 +1,14 @@ -set SOURCES=c:\TEMP\Win10\sources - -del %SOURCES%\install.wim 1>nul 2>nul - -dism /Export-Image ^ - /SourceImageFile:%SOURCES%\install.esd ^ - /DestinationImageFile:%SOURCES%\install.wim ^ - /SourceName:"Windows 10 Pro" ^ - /Compress:Max ^ - /CheckIntegrity - +@echo off +set SOURCES=c:\TEMP\W10\sources + +echo deleting old install.wim ... +del %SOURCES%\install.wim 1>nul 2>nul + +echo exporting WIM image from %SOURCES%\install.esd ... +dism /Export-Image ^ + /SourceImageFile:%SOURCES%\install.esd ^ + /DestinationImageFile:%SOURCES%\install.wim ^ + /SourceName:"Windows 10 Pro" ^ + /Compress:Max ^ + /CheckIntegrity + diff --git a/finish-image.cmd b/wim/finish-image.cmd similarity index 54% rename from finish-image.cmd rename to wim/finish-image.cmd index 96fb9c9..d814030 100644 --- a/finish-image.cmd +++ b/wim/finish-image.cmd @@ -1,30 +1,38 @@ -@echo off -set SOURCES=c:\TEMP\Win10\sources -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 copy SetupComplete script ... -copy /Y SetupComplete.cmd %MNT%\Windows\Setup\scripts -if %errorlevel% neq 0 exit /b %errorlevel% - -echo copy ftp scripts ... -copy /Y ToolsDownload.* %MNT%\Windows\Setup\scripts -if %errorlevel% neq 0 exit /b %errorlevel% - -dir %MNT%\Windows\Setup\scripts - -dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase -dism /Unmount-Wim /MountDir:%MNT% /Commit - -dism /Export-Image ^ - /SourceImageFile:%SOURCES%\install.wim ^ - /DestinationImageFile:%SOURCES%\install_FINAL.esd ^ - /SourceName:"Windows 10 Pro" ^ - /Compress:Recovery ^ - /CheckIntegrity - -del /Q %SOURCES%\install.wim -dir %MNT% - +@echo off +set SOURCES=c:\TEMP\W10\sources +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% ... +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% + +echo showing directory contents : +dir %MNT%\Windows\Setup\scripts + +echo doing cleanup on mountpoint %MNT% ... +dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase + +echo unmounting and committing changes to %SOURCES%\install.wim ... +dism /Unmount-Wim /MountDir:%MNT% /Commit + +echo directory of %MNT% : +dir %MNT% + +echo exporting %SOURCES%\install.wim to %SOURCES%\install_FINAL.esd ... +dism /Export-Image ^ + /SourceImageFile:%SOURCES%\install.wim ^ + /DestinationImageFile:%SOURCES%\install_FINAL.esd ^ + /SourceName:"Windows 10 Pro" ^ + /Compress:Recovery ^ + /CheckIntegrity + +echo deleting old %SOURCES%\install.wim +del /F %SOURCES%\install.wim + diff --git a/get-wiminfo.cmd b/wim/get-wiminfo.cmd similarity index 65% rename from get-wiminfo.cmd rename to wim/get-wiminfo.cmd index 0f14221..7bf295b 100644 --- a/get-wiminfo.cmd +++ b/wim/get-wiminfo.cmd @@ -1,14 +1,15 @@ -@echo off -set SOURCES=c:\TEMP\Win10\sources -set FILENAME=%1 - -IF %1.==. GOTO USAGE - -dism /Get-WimInfo /WimFile:%SOURCES%\%FILENAME% -GOTO END - -:USAGE -echo "usage: %0 " - -:END - +@echo off +set SOURCES=c:\TEMP\W10\sources +set FILENAME=%1 + +IF %1.==. GOTO USAGE + +echo getting infos of %SOURCES%\%FILENAME% ... +dism /Get-WimInfo /WimFile:%SOURCES%\%FILENAME% +GOTO END + +:USAGE +echo "usage: %0 " + +:END + diff --git a/wim/mount-wim.cmd b/wim/mount-wim.cmd new file mode 100644 index 0000000..5e84195 --- /dev/null +++ b/wim/mount-wim.cmd @@ -0,0 +1,10 @@ +@echo off +set SOURCES=c:\TEMP\W10\sources +set MNT=c:\TEMP\WIM + +echo creating wim mountpoint ... +mkdir %MNT% 1>nul 2>nul + +echo mounting install.wim to %MNT% ... +dism /Mount-Wim /WimFile:%SOURCES%\install.wim /Name:"Windows 10 Pro" /MountDir:%MNT% + diff --git a/remove-components.cmd b/wim/remove-components.cmd similarity index 97% rename from remove-components.cmd rename to wim/remove-components.cmd index 009b8d0..3954e5e 100644 --- a/remove-components.cmd +++ b/wim/remove-components.cmd @@ -1,272 +1,272 @@ -set MNT=c:\TEMP\WIM - -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 -install_wim_tweak.exe /p %MNT% /c "Containers-DisposableClientVM" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Guest-Gated" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-OptionalFeature" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Server" /r /n -install_wim_tweak.exe /p %MNT% /c "DeviceAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "LanguageFeatures-WordBreaking" /r /n -install_wim_tweak.exe /p %MNT% /c "Media-FaceAnalysis" /r /n -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 -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-AllJoyn" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-AllowTelemetry" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-onecore-applicationmodel-sync-desktop" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ApplicationModel-Sync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Biometrics" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-BITS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-CameraCaptureUI" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-NFC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-Serial" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Containers" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DebugCore" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DeviceUpdateCenter" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-EnergyEstimationEngine" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ESENT" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Gaming" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Indexer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-InkPlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Maps" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Miracast" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingCommon" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingReceiver" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingTransmitter" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-MFPMP" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Networking-MobileBroadbandApi" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-NowPlayingSessionManager" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-PointOfService" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-RemoteDesktopServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Sensors" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-SpeechComponents" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Onecore-SPP-VirtualDevice" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Tethering" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-TroubleShooting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-UserDataAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Wallet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-WebService" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-PPIProjection" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-UtilityVM" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-3DAudio" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ApiSetSchemaExtension-HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppCompat" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppManagement" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppServerClient" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Backup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Basic-Http-Minio" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BioEnrollment" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BITS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Branding-Enterprise" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Browser" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BusinessScanning" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Casting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-AssignedAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-EmbeddedExp" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-Optional-Features" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-ShellLauncher" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Common-Modem" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-COM-MSMQ" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Compression" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContactSupport" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContentDeliveryManager" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-CoreSystem-DebugTransports" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Cortana" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DataCenterBridging" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DeviceSync" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-directoryservices-adam" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DirectoryServices-ADAM" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-EnterpriseClientSync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-FodMetadata" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Geolocation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Hello-Face" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Help" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HVSI-Components" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-HypervisorPlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-VirtualMachinePlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Identity-Foundation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-IIS-WebServer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-International" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-InternetExplorer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Internet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Killbits" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageEnablingComponents" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageFeatures" /r /n -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 -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer" /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-MiracastView" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileBroadband" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileCore" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobilePC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MRT10" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-MMC-OptGroup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-msmq" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MultiPoint-Connector" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-Connectivity-Assistant" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NetworkDiagnostics" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-QoS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NFS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Notepad-FoD" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-notepad" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Not-Supported-On-LTSB" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OfflineFiles" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneCore-Containers" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneDrive" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ParentalControls" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PAW-Feature" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PeerDist" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PeerToPeer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PerformanceCounters" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PhotoBasic" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Portable-Devices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Presentation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-InternetPrinting-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-LocalPrinting-Enterprise" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PMCPPC-FoD" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PremiumTools" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PrintToPDFServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-WFS-FoD" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-XPSServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Provisioning" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Proximity" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-QuickAssist" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RDC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteAssistance" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteDesktop" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-RemoteFX-clientVM-RemoteFXWDDMDriver" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteFX" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RetailDemo" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Search2" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SearchEngine" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SenseClient" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Serial" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ShareMedia" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Shell-HomeGroup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Shell-SettingSync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Skype" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Client-D" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Deprecation-Group" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Server-D-Opt" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SmbDirect-Opt" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SmbDirect" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SnippingTool" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SNMP" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-StepsRecorder" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-StorageService" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Store" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SystemRestore" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-tabletpcmath" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabletPCMath" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabletPC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabShellExperience" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Telnet-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Telnet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TerminalServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TextPrediction-Dictionaries" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TextPrediction" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TFTP-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TroubleShooting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-UpdateTargeting-ClientOS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-UserExperience-Desktop" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-userexperience" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Virtualization-RemoteFX-User-Mode-Transport" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Virtualization" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-VirtualPC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-VirtualXP" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WebcamExperience" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsFoundation-LanguagePack" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsMediaPlayer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsMediaPlayer-Troubleshooters" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinOcr" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinRT" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinSATMediaFiles" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WMIPerf" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WordBreaking" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WordPad-FoD" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WorkplaceJoin" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-LegacyWmdmFeature" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-UltimatePortableDeviceFeature-Feature" /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 "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 -install_wim_tweak.exe /p %MNT% /c "MultiPoint-Help" /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 -install_wim_tweak.exe /p %MNT% /c "openssh-client-package-Wrapper" /r /n -install_wim_tweak.exe /p %MNT% /c "RemoteDesktopServices-Base-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "Sensors-Universal" /r /n -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 ESSENTIAL (do NOT remove): - -rem Microsoft-Client-License-Platform -rem Microsoft-Windows-20H2Enablement -rem Microsoft-Windows-Client-Desktop-Required -rem Microsoft-Windows-Client-LanguagePack -rem Microsoft-Windows-Common-Foundation -rem Microsoft-Windows-Common-RegulatedPackages -rem Microsoft-Windows-ConfigCI -rem Microsoft-Windows-Desktop-BCDTemplate -rem Microsoft-Windows-DesktopFileExplorer -rem Microsoft-Windows-DeviceGuard-GPEXT -rem Microsoft-Windows-EditionPack-Professional -rem Microsoft-Windows-EditionSpecific-Professional -rem Microsoft-Windows-Editions-Professional -rem Microsoft-Windows-Embedded-UnifiedWriteFilterCSP -rem Microsoft-Windows-Enterprise-Desktop-Share -rem Microsoft-Windows-FCI-Client -rem Microsoft-Windows-Foundation -rem Microsoft-Windows-GroupPolicy-ClientExtensions -rem Microsoft-Windows-GroupPolicy-ClientTools -rem Microsoft-Windows-Holographic-Desktop -rem Microsoft-Windows-HVSI -rem Microsoft-Windows-MSPaint-FoD -rem Microsoft-Windows-NetFx -rem Microsoft-Windows-NetFx2 -rem Microsoft-Windows-NetFx3 -rem Microsoft-Windows-NetFx4 -rem Microsoft-Windows-NewTabPageHost -rem Microsoft-Windows-PowerShell-ISE-FOD -rem Microsoft-Windows-Product-Data-EKB -rem Microsoft-Windows-ProfessionalEdition -rem Microsoft-Windows-Professional-SPP-Components -rem Microsoft-Windows-RegulatedPackages -rem Microsoft-Windows-Required-ShellExperiences-Desktop -rem Microsoft-Windows-Runtime-Metadata-Desktop -rem Microsoft-Windows-SecureStartup -rem Microsoft-Windows-Security-SPP-Component-SKU -rem Microsoft-Windows-ShellExperienceHost -rem Microsoft-Windows-WMPNetworkSharingService - -rem CLEANUP: -del SOFTWAREBKP 1>nul 2>nul - -rem export remaining PACKAGE names ... -install_wim_tweak /p %MNT% /l -dir Packages.txt - +set MNT=c:\TEMP\WIM + +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 +install_wim_tweak.exe /p %MNT% /c "Containers-DisposableClientVM" /r /n +install_wim_tweak.exe /p %MNT% /c "Containers-Guest-Gated" /r /n +install_wim_tweak.exe /p %MNT% /c "Containers-OptionalFeature" /r /n +install_wim_tweak.exe /p %MNT% /c "Containers-Server" /r /n +install_wim_tweak.exe /p %MNT% /c "DeviceAccess" /r /n +install_wim_tweak.exe /p %MNT% /c "HyperV" /r /n +install_wim_tweak.exe /p %MNT% /c "LanguageFeatures-WordBreaking" /r /n +install_wim_tweak.exe /p %MNT% /c "Media-FaceAnalysis" /r /n +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 +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-AllJoyn" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-AllowTelemetry" /r /n +install_wim_tweak.exe /p %MNT% /c "microsoft-onecore-applicationmodel-sync-desktop" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ApplicationModel-Sync" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Biometrics" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-BITS" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-CameraCaptureUI" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-NFC" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-Serial" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Containers" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DebugCore" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DeviceUpdateCenter" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-EnergyEstimationEngine" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ESENT" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Gaming" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-HyperV" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Indexer" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-InkPlatform" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Maps" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Miracast" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingCommon" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingReceiver" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingTransmitter" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-MFPMP" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Networking-MobileBroadbandApi" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-NowPlayingSessionManager" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-PointOfService" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-RemoteDesktopServices" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Sensors" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-SpeechComponents" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Onecore-SPP-VirtualDevice" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Tethering" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-TroubleShooting" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-UserDataAccess" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Wallet" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-WebService" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-PPIProjection" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-UtilityVM" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-3DAudio" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ApiSetSchemaExtension-HyperV" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppCompat" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppManagement" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppServerClient" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Backup" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Basic-Http-Minio" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BioEnrollment" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BITS" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Branding-Enterprise" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Browser" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BusinessScanning" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Casting" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-AssignedAccess" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-EmbeddedExp" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-Optional-Features" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-ShellLauncher" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Common-Modem" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-COM-MSMQ" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Compression" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContactSupport" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContentDeliveryManager" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-CoreSystem-DebugTransports" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Cortana" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DataCenterBridging" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DeviceSync" /r /n +install_wim_tweak.exe /p %MNT% /c "microsoft-windows-directoryservices-adam" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DirectoryServices-ADAM" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-EnterpriseClientSync" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-FodMetadata" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Geolocation" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Hello-Face" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Help" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HVSI-Components" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-HypervisorPlatform" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-VirtualMachinePlatform" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Identity-Foundation" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-IIS-WebServer" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-International" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-InternetExplorer" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Internet" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Killbits" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageEnablingComponents" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageFeatures" /r /n +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 +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer" /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-MiracastView" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileBroadband" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileCore" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobilePC" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MRT10" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-Client" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-MMC-OptGroup" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-msmq" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MultiPoint-Connector" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-Connectivity-Assistant" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NetworkDiagnostics" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-QoS" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NFS" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Notepad-FoD" /r /n +install_wim_tweak.exe /p %MNT% /c "microsoft-windows-notepad" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Not-Supported-On-LTSB" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OfflineFiles" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneCore-Containers" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneDrive" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ParentalControls" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PAW-Feature" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PeerDist" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PeerToPeer" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PerformanceCounters" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PhotoBasic" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Portable-Devices" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Presentation" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-InternetPrinting-Client" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-LocalPrinting-Enterprise" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PMCPPC-FoD" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PremiumTools" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PrintToPDFServices" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-WFS-FoD" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-XPSServices" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Provisioning" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Proximity" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-QuickAssist" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RDC" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteAssistance" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteDesktop" /r /n +install_wim_tweak.exe /p %MNT% /c "microsoft-windows-RemoteFX-clientVM-RemoteFXWDDMDriver" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteFX" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RetailDemo" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Search2" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SearchEngine" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SenseClient" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Serial" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ShareMedia" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Shell-HomeGroup" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Shell-SettingSync" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Skype" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Client-D" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Deprecation-Group" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Server-D-Opt" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SmbDirect-Opt" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SmbDirect" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SnippingTool" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SNMP" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-StepsRecorder" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-StorageService" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Store" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SystemRestore" /r /n +install_wim_tweak.exe /p %MNT% /c "microsoft-windows-tabletpcmath" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabletPCMath" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabletPC" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabShellExperience" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Telnet-Client" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Telnet" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TerminalServices" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TextPrediction-Dictionaries" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TextPrediction" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TFTP-Client" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TroubleShooting" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TS" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-UpdateTargeting-ClientOS" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-UserExperience-Desktop" /r /n +install_wim_tweak.exe /p %MNT% /c "microsoft-windows-userexperience" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Virtualization-RemoteFX-User-Mode-Transport" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Virtualization" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-VirtualPC" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-VirtualXP" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WebcamExperience" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsFoundation-LanguagePack" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsMediaPlayer" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsMediaPlayer-Troubleshooters" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinOcr" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinRT" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinSATMediaFiles" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WMIPerf" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WordBreaking" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WordPad-FoD" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WorkplaceJoin" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-LegacyWmdmFeature" /r /n +install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-UltimatePortableDeviceFeature-Feature" /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 "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 +install_wim_tweak.exe /p %MNT% /c "MultiPoint-Help" /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 +install_wim_tweak.exe /p %MNT% /c "openssh-client-package-Wrapper" /r /n +install_wim_tweak.exe /p %MNT% /c "RemoteDesktopServices-Base-Package" /r /n +install_wim_tweak.exe /p %MNT% /c "Sensors-Universal" /r /n +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 ESSENTIAL (do NOT remove): + +rem Microsoft-Client-License-Platform +rem Microsoft-Windows-20H2Enablement +rem Microsoft-Windows-Client-Desktop-Required +rem Microsoft-Windows-Client-LanguagePack +rem Microsoft-Windows-Common-Foundation +rem Microsoft-Windows-Common-RegulatedPackages +rem Microsoft-Windows-ConfigCI +rem Microsoft-Windows-Desktop-BCDTemplate +rem Microsoft-Windows-DesktopFileExplorer +rem Microsoft-Windows-DeviceGuard-GPEXT +rem Microsoft-Windows-EditionPack-Professional +rem Microsoft-Windows-EditionSpecific-Professional +rem Microsoft-Windows-Editions-Professional +rem Microsoft-Windows-Embedded-UnifiedWriteFilterCSP +rem Microsoft-Windows-Enterprise-Desktop-Share +rem Microsoft-Windows-FCI-Client +rem Microsoft-Windows-Foundation +rem Microsoft-Windows-GroupPolicy-ClientExtensions +rem Microsoft-Windows-GroupPolicy-ClientTools +rem Microsoft-Windows-Holographic-Desktop +rem Microsoft-Windows-HVSI +rem Microsoft-Windows-MSPaint-FoD +rem Microsoft-Windows-NetFx +rem Microsoft-Windows-NetFx2 +rem Microsoft-Windows-NetFx3 +rem Microsoft-Windows-NetFx4 +rem Microsoft-Windows-NewTabPageHost +rem Microsoft-Windows-PowerShell-ISE-FOD +rem Microsoft-Windows-Product-Data-EKB +rem Microsoft-Windows-ProfessionalEdition +rem Microsoft-Windows-Professional-SPP-Components +rem Microsoft-Windows-RegulatedPackages +rem Microsoft-Windows-Required-ShellExperiences-Desktop +rem Microsoft-Windows-Runtime-Metadata-Desktop +rem Microsoft-Windows-SecureStartup +rem Microsoft-Windows-Security-SPP-Component-SKU +rem Microsoft-Windows-ShellExperienceHost +rem Microsoft-Windows-WMPNetworkSharingService + +rem CLEANUP: +del /F SOFTWAREBKP 1>nul 2>nul + +rem export remaining PACKAGE names ... +install_wim_tweak /p %MNT% /l +dir Packages.txt + diff --git a/wim/umount-wim.cmd b/wim/umount-wim.cmd new file mode 100644 index 0000000..cb1608a --- /dev/null +++ b/wim/umount-wim.cmd @@ -0,0 +1,10 @@ +@echo off +set SOURCES=c:\TEMP\W10\sources +set MNT=c:\TEMP\WIM + +echo unmounting wim and discarding changes ... +dism /Unmount-Wim /MountDir:%MNT% /Discard + +echo cleaning up ... +dism /Cleanup-Wim +