Network renames users home area to My Documents.

When you redirect the Documents folder on a Windows Vista-based or Windows 7-based computer to a network share, the folder name unexpectedly changes back to Documents or my documents. This behavior may create many Documents folders on the network share. If you try to rename one Documents folder, all the other Documents folders change to that name.

This is a known issue that microsoft have an article on and have some work arounds. Please see here. However the "fixes" they describe may not be plausable for your environment. To fix the problem, all you have to do is delete the desktop.ini file from the user area and this automatically renames the folder back to what it should be. I have decided that i would write a batch script that you can setup a schedule task to occassionaly run, say every night.

The Code

forfiles /p <path> /s /m desktop.ini /c "cmd /c attrib -h -s @path"
forfiles /p <path> /s /m desktop.ini /c "cmd /c del @path"

Copy the code above and place it in a notepad document. Make sure you save it as a .bat file in order for it to run. Change the item <path> to the root directory of your users. The code searches the <path> directory and all its subdirectories for the desktop.ini file. The first line removes the hidden and system attributes from the desktop ini file so it can be deleted and the second line deletes the file itself.

Once you have your batch file you can create a scheduled task to run this file once a day or however often you feel its necessarily.

Before running this in a live environment, i would suggest you put together a test to make sure it works properly and doesnt cause any issues.

 

 

 

Tag lines - Renamed home folder, home folder renamed to my documents, user folder renamed my documents, home folder name changed to my documents.

 




Disclaimer: By using any of the software mentioned in this document you are adhering to their terms and conditions of use. I do not accept any responsibility for any loss, damage or disruption to your data or computer system that may occur while using the software mentioned in this document.
Site Map | Privacy Policy | Contact Us
| Best viewed in 1024 * 768 or above | ©2008 www.MyPcHealth.co.uk