custom-win10
From ChrisTitusTech project and video
- Debloat Windows 10 by removing/desabling some services and apps
- Configure some security and privacy settings
- And install softs from
essential-packages.config
withchocolatey
Install
Download repository zip and extract
Start powershell commandline in administrator and remove execution restriction
Set-ExecutionPolicy Unrestricted
Go to extracted directory
and run customize.ps1
script
From here we can run post install to setup more packages or generate ISO from this minimal version of Windows 10
Post install
Install packages from post-install-packages.config
run in powershell with administrator rights in extracted directory:
choco install .\post-install-packages.config -y
Build custom ISO
Preparation
- Download latest Windows ISO using tool
- Download WinToolKit 1.7.0.15
- Extract ISO in a folder using 7zip
- If
source\install.esd
exist in a powershell admin inside source folder
# List Indexes (versions) in ESD file
> dism.exe /Get-WimInfo /wimfile:install.esd
Outil Gestion et maintenance des images de déploiement
Version : 10.0.19041.1
Détails pour l´image : install.esd
Index : 1
Nom : Windows 10 Famille
Description : Windows 10 Famille
Taille : ...
...
# Extract one index into an install.wim file
> dism.exe /export-image /sourceimagefile:install.esd /sourceindex:1 /destinationimagefile:install.wim /compress:max /checkintegrity
Customization
- Open WinToolkit and All-In-One Integrator and select install.wim file
- Select windows version to customize
- Load and apply presets file
wintoolkit-aio-remove-settings.ini
- Configure additional tweaks
- Run Start that will remove packages/services and rebuild wim image
- When finish close current window
Create/Update Unattended file
- In WinToolkit, run Unattended Creator in intermediat tab
- Import
Autounattended.xml
file - Modify unattended configuration
- Save file in extracted ISO folder
Create ISO
- First re-convert
install.wim
toinstall.esd
# Remove old install.esd
> rm .\install.esd
# Convert index 1 install.wim to install.esd
> dism.exe /export-image /sourceimagefile:install.wim /sourceindex:1 /destinationimagefile:install.esd /compress:max /checkintegrity
# Remove temporary install.wim
> rm .\install.wim
- In WinToolkit Create ISO from folder