Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

User home directories showing as "my documents"

Posted on 2010-11-22
2
Medium Priority
?
845 Views
Last Modified: 2012-05-10
We recently updated the server housing user home directories from 2003 server to 2008r2. Now many (not all) of the directories in the home share show the name "my documents" instead of the username when view in Explorer. From a command line the names are correct.

Any suggestions on how to fix this and have the correct directory names display?
0
Comment
Question by:MichaelSparks
2 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 1000 total points
ID: 34189203
Delete the file "desktop.ini" (with the attributes Hidden and System) in the root of these folders.
A batch script to do that quickly (currently in test mode; remove the capitalized ECHOs 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

0
 
LVL 2

Author Closing Comment

by:MichaelSparks
ID: 34189454
Thanks, that did it. I was thinking it would be some special extended attribute on the directory but it was just that simple desktop.ini file.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question