?
Solved

Modify TEMP Location within a Terminal Service Session Win2000

Posted on 2004-04-02
2
Medium Priority
?
285 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 2000 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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