Download a Windows ISO image.
Create a bootable USB drive with Rufus.
Extract a specific Window edition.
# Replace `X` with the USB drive letter. $WimFile = "X:\sources\install.wim" # List all Windows editions in the image file. Get-WindowsImage -ImagePath $WimFile # Exports a copy of the specified edition to another image file. $ImageIndex = 6 # Replace `6` with the desired edition. $WimFile2 = $WimFile.Replace(".", "2.") Export-WindowsImage -SourceImagePath $WimFile -SourceIndex $ImageIndex -DestinationImagePath $WimFile2 -CompressionType Max -CheckIntegrity # Replace the old image file with the new one. Remove-Item -Path $WimFile -Force Rename-Item -Path $WimFile2 -NewName $WimFile
Removes the 8dot3 file names for all files. 1
$MountPath = "C:\~wim" New-Item -Path $MountPath -ItemType Directory -Force Get-WindowsImage -ImagePath $WimFile | ForEach-Object -Process { Write-Host "Processing:" $_.ImageName Mount-WindowsImage -Path $MountPath -ImagePath $WimFile -Index $_.ImageIndex fsutil.exe 8dot3name strip /f /s $MountPath Write-Host "Press any key to continue..." [System.Console]::ReadKey($false) Dismount-WindowsImage -Path $MountPath -Save }After Windows has been installed.
# Disable the 8dot3 name creation. fsutil.exe 8dot3name set C: 1
Create the autounattend.xml file in the USB root directory.
| Tool | Description |
|---|---|
ShutUp10 |
Free antispy tool for Windows 10/11. |
OoAppBuster |
Free uninstaller for unwanted apps. |
Winaero Tweaker |
Utility that lets you adjust various Windows settings. |
Microsoft-Activation-Scripts |
Open-source Windows and Office activator. |
Configure AdGuard DNS (Encrypted) |
PowerShell script to configure AdGuard DNS (Encrypted). |