Open in the explorer

Specify Windows installation file location

Spécifier l’emplacement du fichier d’installation de Windows

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
Setup.admx
Internal name
Setup/SetupSourcePath

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.

French text from Windows 11 26H2

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 String

Disable

# 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 SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Windows Setup file path:Chemin d’accès du fichier d’installation de Windows :SetupSourcePathBoxText boxtextSourcePathREG_SZ
Required

Availability