Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Script:
# Script PowerShell pour créer une ISO allégée de Windows 11 24H2 avec tiny11 et installer des logiciels obligatoires
# Variables
$isoPath = "C:\Path\To\Windows11_24H2.iso"
$mountPath = "C:\Mount\Windows11"
$destinationPath = "C:\Path\To\CustomWindows11.iso"
$softwareList = @("7-Zip", "VLC", "Adobe Acrobat", "Firefox", "UniGetUI", "PC Manager Microsoft", "Chrome", "Edge")
# Monter l'ISO
Mount-DiskImage -ImagePath $isoPath
$disk = Get-DiskImage -ImagePath $isoPath | Get-Volume
$mountedDrive = $disk.DriveLetter + ":\"
# Copier les fichiers de l'ISO monté vers le dossier de travail
Copy-Item -Path "$mountedDrive*" -Destination $mountPath -Recurse
# Intégrer tiny11 pour alléger l'ISO
# (Supposons que tiny11 soit un script ou un processus que vous pouvez exécuter ici)
# Installer les logiciels obligatoires
foreach ($software in $softwareList) {
Write-Host "Installation de $software..."
# Commande d'installation fictive, à remplacer par la commande réelle
# Start-Process -FilePath "InstallerPath\$software.exe" -ArgumentList "/silent" -Wait
}
# Créer une nouvelle ISO
New-IsoFile -Path $destinationPath -SourcePath $mountPath -Force
# Nettoyer
Dismount-DiskImage -ImagePath $isoPath
Remove-Item -Path $mountPath -Recurse -Force
Write-Host "ISO personnalisée créée avec succès à $destinationPath"
Comment exécuter le script:
$isoPath
, $mountPath
, et $destinationPath
selon vos besoins..ps1
, par exemple CreateCustomWindows11.ps1
..\CreateCustomWindows11.ps1
dans PowerShell.