Spécifier l’emplacement du fichier d’installation du Service Pack Windows
Specify Windows Service Pack installation file location
Explication
Spécifie un autre emplacement pour les fichiers d’installation du Service Pack Windows.
Si vous activez ce paramètre de stratégie, indiquez le chemin d’accès complet au nouvel emplacement dans la zone « Chemin d’accès du fichier d’installation du Service Pack Windows ».
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le chemin d’accès à la source d’installation du Service Pack Windows correspond à l’emplacement utilisé la dernière fois que l’installation du Service Pack Windows a été exécutée sur le système.
Specifies an alternate location for Windows Service Pack installation files.
If you enable this policy setting, enter the fully qualified path to the new location in the "Windows Service Pack Setup file path" box.
If you disable or do not configure this policy setting, the Windows Service Pack Setup source path will be the location used during the last time Windows Service Pack Setup was run on the system.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Setup- 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 : Setup/ServicePackSourcePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Setup'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Chemin d’accès du fichier d’installation du Service Pack Windows
Set-ItemProperty -Path $k -Name 'ServicePackSourcePath' -Value '<valeur>' -Type StringDésactiver
# Désactiver : Setup/ServicePackSourcePath
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : Setup/ServicePackSourcePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Setup'
Remove-ItemProperty -Path $k -Name 'ServicePackSourcePath' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Chemin d’accès du fichier d’installation du Service Pack Windows :Windows Service Pack Setup file path:ServicePackSourcePathBox | Zone de textetext | ServicePackSourcePath | REG_SZ | Obligatoire |