Ajout de la langue anglaise
Ajout d'un README.md avec le descriptif et les instructions L'ancien README.md s'appelle désormais CHANGELOG.md Activation du pavé numérique par défaut pour les installations sans assistance Nouveau design pour la fenêtre de déploiement. Ajout de paramètre pour pouvoir procéder à une installation totalement automatisée Ajout de paramètre pour copier au choix sources, drivers ou les deux sur C:\DeployVenter avant leur usage par DISM.
This commit is contained in:
1 parent
cb917c97ce
commit
2212e25d31
26 files changed
+2625
-830
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# DeployCenter - Lecture des préférences utilisateur
|
||||
# Lecture seule : ce module ne modifie jamais DeployCenter.ini.
|
||||
# DeployCenter - Read user preferences
|
||||
# Read-only: this module never modifies DeployCenter.ini.
|
||||
|
||||
function Read-DeployCenterConfig {
|
||||
[CmdletBinding()]
|
||||
@@ -11,12 +11,15 @@ function Read-DeployCenterConfig {
|
||||
VncPassword = ''
|
||||
WinRESizeMB = 1024
|
||||
UnattendAdminName = 'admin'
|
||||
UnattendAdminDisplayName = 'Administrateur local'
|
||||
UnattendAdminDisplayName = 'Local Administrator'
|
||||
UnattendAdminGroup = 'Administrators'
|
||||
UnattendAdminPasswordBase64 = ''
|
||||
UnattendSupportProvider = ''
|
||||
UnattendSupportURL = ''
|
||||
UnattendSupportAppURL = ''
|
||||
UnattendWallpaperPath = 'Assets\blorand.png'
|
||||
DriverRootPath = ''
|
||||
DriverUrls = @{ Lenovo = ''; Dell = ''; HP = ''; Microsoft = '' }
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $ConfigPath -PathType Leaf)) { return $config }
|
||||
|
||||
@@ -38,7 +41,7 @@ function Read-DeployCenterConfig {
|
||||
} elseif ($section -ieq 'Partitioning' -and $key -ieq 'WinRESizeMB') {
|
||||
$sizeMB = 0
|
||||
if (-not [int]::TryParse($value, [ref]$sizeMB) -or $sizeMB -le 0) {
|
||||
throw "Le paramètre [Partitioning] WinRESizeMB doit être un entier strictement positif. Valeur reçue : '$value'."
|
||||
throw "[Partitioning] WinRESizeMB must be a positive integer. Value received: '$value'."
|
||||
}
|
||||
$config.WinRESizeMB = $sizeMB
|
||||
} elseif ($section -ieq 'Unattend' -and $key -ieq 'AdminName') {
|
||||
@@ -51,10 +54,16 @@ function Read-DeployCenterConfig {
|
||||
$config.UnattendAdminPasswordBase64 = $value
|
||||
} elseif ($section -ieq 'Unattend' -and $key -ieq 'SupportProvider') {
|
||||
$config.UnattendSupportProvider = $value
|
||||
} elseif ($section -ieq 'Unattend' -and $key -ieq 'SupportURL') {
|
||||
$config.UnattendSupportURL = $value
|
||||
} elseif ($section -ieq 'Unattend' -and $key -ieq 'SupportAppURL') {
|
||||
$config.UnattendSupportAppURL = $value
|
||||
} elseif ($section -ieq 'Unattend' -and $key -ieq 'WallpaperPath') {
|
||||
$config.UnattendWallpaperPath = $value
|
||||
} elseif ($section -ieq 'Drivers' -and $key -ieq 'RootPath') {
|
||||
$config.DriverRootPath = $value
|
||||
} elseif ($section -ieq 'Drivers' -and $key -match '^(Lenovo|Dell|HP|Microsoft)URL$') {
|
||||
$config.DriverUrls[$matches[1]] = $value
|
||||
}
|
||||
}
|
||||
return $config
|
||||
|
||||
Reference in new issue
Block a user