Powershell
Variable d’environnement
Section titled “Variable d’environnement”Remplacer et/ou supprimer une variable d’environnement
Section titled “Remplacer et/ou supprimer une variable d’environnement” $actualpath = $Env:Path $newpath = $path.replace("C:\WINDOWS\System32\OpenSSH\;","") $env:Path = $newpathAjouter une variable d’environnement
Section titled “Ajouter une variable d’environnement” $actualpath = $Env:Path $addPath = 'C:\Program Files\Oracle\VirtualBox' $env:Path += ";$addpath"