Wednesday 17 October 2012

Citrix XenApp - Adding a shortcut to users local directory (not included in special folder redirection)

You want to give a user a convenient with a link to the users local client folder e.g. a C:\SpecialFolder folderwhich is used by an old application or a legacy proecure that users dont want to change :)

Wrong Solution 1 (only to be used as a one off)
Talk the user through browsing through the file system on their mapped client drive e.g. \\cleint\c$\SpecialFolder - however users will quickly get bored of that and wont want to do that if they regularly need access to files on their local documents folder.

Wrong Solution 2 (you could try this and see if you can find out why the shortcut breaks)
Another thing I then thought was well - now that I have browsed to that location - cant I just add it as a favorite and then the user just clicks the "SpecialFolder" item in theit favorite.  Yes this worked... but only until they logged off and back on again.  At which point the shotcut breaks and clicking on it produces an error - darn!

My Working Solution (use this)
On each of the XenApp severs there is a hidden folder (E:\Hidden) and within that there are symbolic links to the locations that are not covered by "Special Folder redirection", in the below example I create a symbolic link to the local workstation users directory for the current user - (script to create this hidden folder and symbolic links is avialable below) - this could by a symbolic link ton anywhere however!
Symbolic links to the users local machine profile UNC path in Citrix XenApp

Browse to this location and then select the appropriate LocalProfile link
This takes you to the root of the user profiles directory on the machine
You can then add this location to Favourites
This location can then easily be reached from the favorites menu in many open/save dialogues.

Script to create hidden folder with symbolic links to a client machines local users folder and a link to c:\SpecialFolder (copy and paste and save as .BAT) Note: Run as Administrator!
mkdir E:\Hidden attrib +s +h +r E:\Hidden 
mklink /D "E:\Hidden\LocalProfileXP" "\\client\c$\documents and settings\" 
mklink /D "E:\Hidden\LocalProfileWin7" "\\client\c$\users\" 
mklink /D "E:\Hidden\C-SpecialFolder" ""\\client\c$\SpecialFolder"
pause

No comments:

Post a Comment