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.
Windows – How to set environment variable for another user
environment-variableswindows
Related Topic
- Linux – Environment variables of a running process on Unix
- Windows – How to set a Windows user environment variable that takes effect for the current session
- Debian – How to set an environment variable for a process spawned by the webserver
- Set environment variable for process spawned by Apache webserver
- Windows – Python: How to i read the environment variables / user path variables from another user
- How do refresh environment variable changes from a different user session
- Windows – How to configure environment variables in an IIS 7 application
- Windows – Setting environment variable for a different user in windows
Best Answer
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