MS File shares read as My Documents


We have a file server where some of the staff home directories have changed to being shown as My Documents .

Normally the Netbios path is


Now when I look on my directory path on the server I have loads of folders that are

e:\users\staff\My Documents  (Where staff is the sharename and the folder name)

If I drill down in a Dos Box they are still e:\users\staff\firstname.surname

Some sort of alias thing has happened, any ideas how I can fix it.

Jo CoxAsked:
Who is Participating?
oBdAConnect With a Mentor Commented:
The culprit is the Desktop.ini in these folders; delete it, and the folders will be normal again. To be precise, it's Explorer that uses the Desktop.ini to generate a "friendly" display name. If you open a command prompt, cd into the home root folder, and do a "dir", you'll still see the real directory names. If you add "Filename" to the columns in Explorer, you should be able to see the real names in Explorer as well.
Here's a batch script to delete these Desktop.ini files quickly; just set "HomeRoot" to the root of your user folders. If UAC is active, you'll have to run the script from a command prompt started with elevated permissions.
The script is currently in test mode, it will only display the commands it would normally run; remove the uppercase ECHOs in line 6 and 7 to run it for real:
@echo off
set HomeRoot=D:\Home
for /d %%a in ("%HomeRoot%\*.*") do (
  echo Processing %%~nxa ...
  if exist "%%a\desktop.ini" (
    ECHO attrib -h -s "%%a\desktop.ini"
    ECHO del "%%a\desktop.ini"

Open in new window

More information:
How to modify your folder view settings or to customize a folder

Customizing Folders with Desktop.ini
Patrick BogersDatacenter platform engineer LindowsCommented:

Can it be some new user does not have firstname.surname  specified in his/hers profile path?
Jo CoxAuthor Commented:
Also the icon has changed from a folder Icon to a Documents folder Icon
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Jo CoxAuthor Commented:
What profile path?
Also this happened to existing users!
This happened to me if redirection of My documents was set incorectly.

Set is as follows:
Folder Redirection
Basic - Redirect Everyone's folder to the same location
Target folder location: Create folder for each user under the root path
Root Path: \\server\sharename\ ... path to share with all users folders

I guess your Target Folder location is set to Redirect to the user's home directory
Patrick BogersDatacenter platform engineer LindowsCommented:
Profile path is under properties for any AD user where (i suspect 'username' is replaced by 'surname,lastname').

home folder
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
I have found that if permissions are set as per Microsoft guidelines you will never ever see this, because you as the administrator don't have access. This 'bug' of seeing multiple 'my documents' is something that only administrators will see the proper fix is to remove read permissions on the desktop.ini file for administrators
I am of the opinion that administrators do not need access to the personal file areas except on very RARE and on a case by case basis on a need to know basis.

System tools don't need administrative permission as they have 'system' permission.  So backup and file management tools work fine.. want to block .mp3's, wmv, avi's easily done at the system level.

Note: I come from a military security model (appropriate security clearance and need to know are the guiding policies re access.
Jo CoxAuthor Commented:
Bang on the money oBda and interesting points ve30fa
Thank you very much.
Any idea how they got there, I assume created by the clients devices.
Jo CoxAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.