On Windows, how do I set an environment variable for a user other than the currently logged in one? I need to set the TMP
variable to change the temporary directory used by an ASP.NET app.
On Windows, how do I set an environment variable for a user other than the currently logged in one? I need to set the TMP
variable to change the temporary directory used by an ASP.NET app.
You can access through the registry. Modify the
\Environment\Tmp
key inHKEY_Users\<their SID>
Here are two solutions for getting the account SID
or