Spécifier des paramètres pour l’installation des composants facultatifs et la réparation de composants
Specify settings for optional component installation and component repair
Explication
Ce paramètre de stratégie spécifie les emplacements réseau qui permettront de réparer un système d’exploitation corrompu et d’activer des fonctionnalités facultatives dont les fichiers de charge utile ont été supprimés.
Si vous activez ce paramètre de stratégie et spécifiez le nouvel emplacement, les fichiers se trouvant à cet emplacement serviront à réparer un système d’exploitation corrompu et à activer des fonctionnalités facultatives dont les fichiers de charge utile ont été supprimés. Vous devez indiquer le chemin d’accès complet au nouvel emplacement dans la zone « Autre chemin d’accès au fichier source ». Vous pouvez indiquer plusieurs emplacements en séparant chaque chemin d’accès par un point-virgule.
L’emplacement réseau peut être un dossier ou un fichier WIM. S’il s’agit d’un fichier WIM, vous devez spécifier l’emplacement en ajoutant le préfixe « wim » au chemin d’accès et en ajoutant l’index de l’image à utiliser dans le fichier WIM. Par exemple : « wim:\\server\share\install.wim:3 ».
Si vous désactivez ou ne configurez pas ce paramètre de stratégie ou si les fichiers nécessaires sont introuvables aux emplacements spécifiés dans ce paramètre de stratégie, les fichiers sont téléchargés à partir de Windows Update si le paramètre de stratégie appliqué à cet ordinateur le permet.
This policy setting specifies the network locations that will be used for the repair of operating system corruption and for enabling optional features that have had their payload files removed.
If you enable this policy setting and specify the new location, the files in that location will be used to repair operating system corruption and for enabling optional features that have had their payload files removed. You must enter the fully qualified path to the new location in the ""Alternate source file path"" text box. Multiple locations can be specified when each path is separated by a semicolon.
The network location can be either a folder, or a WIM file. If it is a WIM file, the location should be specified by prefixing the path with “wim:” and include the index of the image to use in the WIM file. For example “wim:\\server\share\install.wim:3”.
If you disable or do not configure this policy setting, or if the required files cannot be found at the locations specified in this policy setting, the files will be downloaded from Windows Update, if that is allowed by the policy settings for the computer.
Registre
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing- Nom de la valeur
- non défini dans l'ADMX
Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : Servicing/Servicing
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Autre chemin d’accès au fichier source
Set-ItemProperty -Path $k -Name 'LocalSourcePath' -Value '<valeur>' -Type ExpandStringDésactiver
# Désactiver : Servicing/Servicing
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : Servicing/Servicing
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing'
Remove-ItemProperty -Path $k -Name 'LocalSourcePath' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Autre chemin d’accès au fichier sourceAlternate source file pathLocalSourcePath_TextBox | Zone de textetext | LocalSourcePath | REG_EXPAND_SZ |