I have the following code in a vbscript:
Set WshShell = WScript.CreateObject("Wscript.Shell")
Set WshUserEnv = WshShell.Environment ("USER")
WshUserEnv("Test") = "123"
When I login the user, the variable 'Test' appears in the user's list of variables in the 'MyComputer'->'Properties'->'Advanced'->'Environment Variables' window. However, if I type 'set' from the user's command prompt, the variable does not show up in the list (echo %Test% results in %Test% being echoed back).
Is there something more I should do?