Solved

Modify TEMP Location within a Terminal Service Session Win2000

Posted on 2004-04-02
2
283 Views
Last Modified: 2010-04-12
Gents

I have a problem with the Temp folder location for each of my users as they log into a terminal session.

It is that I cannot seem to modify the Environment path to show their "%homedrive%\%UserName%\Temp" on another server. Everytime they log on they get the local temp profile for the server they are on. This would not normally be a problem but we have roundrobin enabled so the user is not guaranteed to have the same temp folder when he logs on as we have 3 servers within this they have a 1 in 3 chance of getting the Temp folder with their files in.
I have heard that their maybe a registry hack for this but I cannot find it. also maybe it could be achieved through a logon script in VB as I have limited knowledge with VB I am not sure how toi progress this.

This is very important to me so I will award 500 points.

I will be very gratefull for any help on this

Regards

Darren
0
Comment
Question by:DarrenJackson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
visioneer earned 500 total points
ID: 10744337
Here's how I've done it in the past and it's worked great.

Create a file with Notepad called ENVIRON.KEY and put it in your system32 directory, with the contents as follows:

HKEY_CURRENT_USER\Environment
    TEMP = REG_EXPAND_SZ %homedrive%\%UserName%\Temp
    TMP = REG_EXPAND_SZ %homedrive%\%UserName%\Temp
    TMPDIR = REG_EXPAND_SZ %homedrive%\%UserName%\Temp

Next, edit the logon script for your Terminal Server (I like to change the USRLOGON.CMD file in the system32 directory) and add this to the top of the script:

regini %windir%\system32\environ.key > nul

This will merge the registry settings for the temp folder location.  Note that this will take effect the NEXT time they log in, after this change has been applied.  However, once it is applied, it should stay that way.
0
 

Author Comment

by:DarrenJackson
ID: 10748014
Many thanks for this visioneer. You are right it works a treat.

Thankyou very much

Darren
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article discusses how to implement server side field validation and display customized error messages to the client.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question