Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drive Mapping

Status
Not open for further replies.
Dec 26, 2000
31
US
Hi,
I am in the process of taking over support for Citrix.

I have been reading the Metaframe Administrators guide ver 1.8. I have found 2 problems with our setup.

1) Load balancing is not happening, and have found that the apps were not published on the second server. I can fix this.

2) Clients are saving there personal documents to a user folder on the servers hard drive, which I think is not a good thing because when I kick in load balance, there stuff could end up on 2 different servers.

We have a Users folder on our file server,when a user logs in I would like citrix to map a drive automaticly to there users folder on our file server, and manually move all there stuff off of the servers hard drive to there users folder on the file server. When I get this working, i can load balance the two servers making it invisible to the user which server they are getting the application from.When a user creates a word document, they can then save it to there respected user folder on the file server.

Any information would be greatly appreciated.

Mike
 
I figured it out.

Create a logon script for each user.

script looks like :

net use \\server\share x:
 
You were right the first time... ;-P

net use x: \\server\share

you can also use %username% for a generic login script so as not to create a script for each user, and theres more......

Not sure if this is over with, but hey... who knows


 
1. You have to centralize the Users Home Directory and Profile directory using the Terminal server User Manager for domains. Assign a "Terminal sever user Profile path" and "Terminal server user home directory path". You can use nestled directory for that:
Profile:
\\Server\%USERNAME%\Profile

Home Directory
\\Server\%USERNAME%


2. Create the Directories and share them

You won't need any Logon script. The user home directory gets mapped automatically.



 
Quick Tip:

I've seen an issue with, for example, Microsoft Word, where even when the path is set in this way, the default file location still has to be forced. Check where Word attempts to save its files in a load-balanced scenario - unless you've already tweaked it, it tries to save to its local profile.
 
I use this VBScript to remap the "My Documents" folder to the users "Home Directory" on a separate file server. I created a share on that server called users. Open usrmgr and edit all profiles to point their "Home Directory" to this folder using %username%, this will create the folders and apply appropriate permissions for you. Copy the script below into a text file and rename the file to mydoc.vbs. Reference this file in the users logon script, or place the file in the startup folder. All office programs point to the "My Documents" folder which will now be remapped to your file server. I've also implemented roaming profiles for TS so that my users retain their settings.

Good Luck!

Jeremy

dim wshell
set wshell = wscript.createobject ("wscript.shell")
dim wshnetwork
set wshnetwork = wscript.createobject ("wscript.network")
dim username
username = wshnetwork.username
dim userpath
userpath = "\\YourFileServerName\users\" + username
wshell.regwrite "HKCU\software\microsoft\windows\currentversion\explorer\user shell folders\personal", userpath
dim exists
dim fso
set fso = createobject ("Scripting.filesystemobject")
exists = 0
dim newfolder
newfolder = "\\YourFileServerName\users\" + username

exists = 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top