Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Modify TEMP Location within a Terminal Service Session Win2000

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

636 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