Hi
How I do get the PATH value only for a single user ?
I have two user on my desktop and I want to change the PATH only for the ‘User1’
for example :
$PATH = $env:Path
$PATH += ";" + $jdkInstallFolder +"\bin" #The new folder to add
Set-EnvironmentVariable -name PATH -Value $PATH -Target User
But it doesn't work because It's adding the path of the whole machine to single user Path ( User1)
so I get a double string.
I'm very confused
Can you help me , thanks !