Files
Bastion-Stid/template/http/Passwd.ps1
Serge NOELandClaude Opus 5.5 1e2bcf21cf Regroupement de la chaîne de tests de charge beWeapon
- template/ : build Packer du template Windows 11 (ex /data/Installer/MyTemplate)
- deploy/   : OpenTofu + playbooks Ansible (ex /data/Tofu)
- bin/Deploy : menu de déploiement (lien depuis /usr/local/bin/Deploy)
- jeton API Proxmox sorti des playbooks vers deploy/proxmox-secret.yml (hors git)
- README.md : documentation de la structure et du mode opératoire
- Ameliorations.md : recommandations pour fiabiliser les mesures
- tests/ (dépôt beWeapon-LT) et archives/ exclus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:27:51 +01:00

23 lines
1.0 KiB
PowerShell

# Journalisation
"Installation des runtimes" | Out-File -FilePath "C:\install.log" -Append -Encoding utf8
# 1. Installation du dotnet runtime (avec attente de la fin du processus)
$installer = Get-ChildItem -Path "D:\install", "E:\install", "F:\install" -Filter "dotnet-runtime-10.0.11-win-x64.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
if($installer) {
Start-Process -FilePath $installer.FullName "/passive /norestart" -Wait
}
# 2. Installation des Guest Tools
$installer = Get-ChildItem -Path "D:\install", "E:\install", "F:\install" -Filter "windowsdesktop-runtime-10.0.12-win-x86.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
if ($installer) {
Start-Process -FilePath $installer.FullName -ArgumentList "/passive /norestart" -Wait
} else {
Write-Error "Lecteur CD VirtIO introuvable."
"Lecteur CD VirtIO introuvable." | Out-File -FilePath "C:\install.log" -Append -Encoding utf8
}
# $Password = ConvertTo-SecureString "Stid_2026-03" -AsPlainText -Force
# Set-LocalUser -Name "NomUtilisateur" -Password $Password