Showing posts with label Administration. Show all posts
Showing posts with label Administration. Show all posts

Thursday, 29 November 2012

Server 2008: Users documents folders listed as "My Documents"

Does your user share directory look something like this:
I need to copy some files into Bob's documents folder. err
This is not particularly useful and this happens when Windows 7/Windows 8 home drives are viewed from Server 2008 R2 (and I assume possible Server 2012).

The official Microsoft answer is to either remove access rights to administrators to the desktop.inf file saved in the root of each users directory.  This would either need to be done manually or on a scheduled script and is quite frankly a rubbish solution.

The *best* way to resolve is to have the Documents folder redirect under a username folder e.g. \\SERVER\share\%username%\Documents so at least your user directory will display the easily identifiable usernames.  However if you have a lot of users that might take some doing.

Quick Fix
A simple work around so you can identify the "real" folder names correctly is to add the file name column to explorer
To do this Right click on any of the column headings and select More

Next scroll down until you find filename NOT folder name.  This will add the filename column which will show the real name of the folder instead of the "friendly" name of My Documents.  It will appear at the far right and to be useful I recommend moving over to the left
 Once that is done... Whoop we have a usable, sortable folder list in our usershare!
No need to hunt around for the correct folder any more!


Wednesday, 17 October 2012

Citrix XenApp 6.5 - 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