I've run into a strange problem in that I've set Path variables in Windows, after a reboot they disappear until I go look at the Environment variable settings.
I can restore them by simply doing:
System Properties
=> [Environment Variables]
=> [OK]
...then they are set again!
Note: If I type [SET]
, I can see them in my Path
Example:
I have an addition to my path which points to:
%USERPROFILE%\Documents\WindowsPowerShell\Scripts
In ^^that^^ dir I have a file myscript.ps1
.
If I open PowerShell after booting up, I can type "my [TAB]
" and it will not find the script.
After Opening the Environment Variables Dialog and selecting [OK]
, restart PowerShell, I can do the same "my [TAB]
" and autofill "myscript.ps1" without any issue.