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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Jo CoxAuthor Commented:
What profile path?
Also this happened to existing users!
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
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:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.