Solved

User home directories showing as "my documents"

Posted on 2010-11-22
2
837 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 83

Accepted Solution

by:
oBdA earned 250 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now