Specify Windows installation file location
Spécifier l’emplacement du fichier d’installation de Windows
Explanation
Specifies an alternate location for Windows installation files.
If you enable this policy setting, enter the fully qualified path to the new location in the "Windows Setup file path" box.
If you disable or do not configure this policy setting, the Windows Setup source path will be the location used during the last time Windows Setup was run on the system.
Spécifie un autre emplacement pour les fichiers d’installation 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 de Windows ».
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le chemin d’accès à la source de l’installation de Windows correspond à l’emplacement utilisé la dernière fois que l’installation Windows a été exécutée sur le système.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Setup- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: Setup/SetupSourcePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Setup'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Windows Setup file path
Set-ItemProperty -Path $k -Name 'SourcePath' -Value '<value>' -Type StringDisable
# Disable: Setup/SetupSourcePath
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Setup/SetupSourcePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Setup'
Remove-ItemProperty -Path $k -Name 'SourcePath' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Windows Setup file path:Chemin d’accès du fichier d’installation de Windows :SetupSourcePathBox | Text boxtext | SourcePath | REG_SZ | Required |