You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using [System.Environment]::GetEnvironmentVariable("Path", "User"), the returned value will have an already expanded path. The line should get the raw registry value that does not have an expanded string to ensure that when the path is prepended with the WSL path, it still contains the expand placeholders.
For example, the default User path value is actually %USERPROFILE%\AppData\Local\Microsoft\WindowsApps;. The line above will return C:\Users\<username>\AppData\Local\Microsoft\WindowsApps and will replace the unexpanded string when we set it in the next command.
When using
[System.Environment]::GetEnvironmentVariable("Path", "User")
, the returned value will have an already expanded path. The line should get the raw registry value that does not have an expanded string to ensure that when the path is prepended with the WSL path, it still contains the expand placeholders.For example, the default User path value is actually
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
. The line above will returnC:\Users\<username>\AppData\Local\Microsoft\WindowsApps
and will replace the unexpanded string when we set it in the next command.What this should be is;
The text was updated successfully, but these errors were encountered: