Environment variables does not take effect on Windows 10

Hi all,

I am doing some PowerShell Cmdlet on Windows 10 Pro Tech. Preview, and It seems to me changes to environment variables does not take effect until reboot. This bug has been tested against few builds (10049, 10074 and 100122) and all behave the same.

Steps below

1. In Win10 Pro x64 Preview, right click "This PC" 
--> "Properties" 
--> "Advanced system settings" 
--> "Advanced" 
--> "Environment Variables..." 
--> "System variables"
--> check "PSModulePath" and its value is "%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\"
--> Add path "c:\aa" to "PSModulePath", so it becomes "%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\;c:\aa"
2. Launch Windows PowerShell console, and run "$env:PSModulePath"
   ====================================
   PS C:\Users\Administrator> $env:PSModulePath
   C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

3. Launch cmd.exe, and run "SET", $PSModulePath does not take effect either.

I did the same test on Windows 7 and Windows 8, which is working fine without a reboot.

Is this an issue on Windows 10 or have I missed anything to set env. variable on Windows 10?

Thanks for the help!

May 28th, 2015 3:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics