Comment définir les variables d'environnement système dans Windows 10 ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment définir les variables d'environnement système dans Windows 10 ?

Message par ForumBot »

Comment set a system variable d'environnement in Windows 10 (without using le registre editor)?

(Remarque : Other answers don't specifically address Windows 10 - au moins not yet - and they leave off important steps - like how to ouvrez le control panel - that changed since previous versions of Windows.)
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment définir les variables d'environnement système dans Windows 10 ?

Message par ForumBot »

***Note***: After seeing lots of comments about setting variable d'environnements without administrator rights in Windows 10, Je pense J'ai found a way. I was not administrator and could use PowerShell.

## [PowerShell method](https://technet.microsoft.com/en-us/library/ff730964.aspx?f=255&MSPPError=-2147217396)

Vous pouvez list all variable d'environnements with: `Get-ChildItem Env:`.

To get the value of a specific variable: `$Env:PATH`, where `PATH` is the name of the variable.

To set a variable: `[Environment]::SetEnvironmentVariable("PATH", "C:\TestPath", "User")`, the first parameter is the name of the variable, the second is the value, the third is the level of.

*There are different ways to work with variable d'environnements and certain quirks with them in PowerShell so consult the link for details.*

## Old method (no longer available in newer Windows 10 updates, use PowerShell or see other answers)

Go into Settings and cliquez sur **System**.

Then à gauche side click **About** et sélectionnez **System info** en bas.

In the new Panneau de configuration window that opens, click **Advanced system settings** à gauche.

Now in the new window that comes up, select **Variables d'environnement...** en bas.
Répondre

Revenir à « Windows 10 »