+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 42
Windows Server 2008 Thread, Home folders renames to My Documents in Technical; Is there a patch or fix to the bug that renames the users home folder to "My Documents" when you ...
  1. #1

    Join Date
    Jan 2010
    Location
    Stockport
    Posts
    77
    Thank Post
    39
    Thanked 4 Times in 2 Posts
    Rep Power
    10

    Home folders renames to My Documents

    Is there a patch or fix to the bug that renames the users home folder to "My Documents" when you redirect the Documents folder on a Windows 7 based computer to a network share (see screen shot). I have looked at the following fix for Vista

    When you redirect the Documents folder on a Windows Vista-based computer to a network share, the folder name unexpectedly changes back to Documents

    I have tried method 2 and it doesn't work for me. Method 3 is a joke as the server may have 400+ home folders and I cant be expected to apply method 3 to all the desktop.ini files!!

    The home folder is renamed when the user logs off, and once renamed to "My Documents" has not effect on its use. I cant believe this bug even exists on a flagship O.S. like Server 2008 R2.

    Thanks,

    John
    Attached Images Attached Images

  2. #2

    Join Date
    Nov 2009
    Posts
    54
    Thank Post
    3
    Thanked 12 Times in 12 Posts
    Rep Power
    12
    Here's a way to test out step 3 with a script. First test to see if this fixes your issue
    Code:
    XCACLS desktop.ini /D Administrator:R /Y
    Manually check the file permission. If that works this should work for automating it for all users. I'm not too sure which desktop.ini file they are talking about so I'm putting an example for one in the file path and one in a UNC path.

    Code:
    FOR /F "tokens=1 delims= " %a in ('dir /b "c:\documents and settings"') DO XCACLS "c:\documents and settings\%a\desktop.ini /D Administrator:R /Y"
    Code:
    FOR /F "tokens=1 delims= " %a in ('dir /b "\\server\users\"') DO XCACLS  "\\server\users\%a\desktop.ini /D Administrator:R /Y"
    ** One note. If you save this to a batch file, you want to make the % double %% or else it won't work.

  3. Thanks to Nixphoe from:

    bewlay51 (5th April 2010)

  4. #3
    jmcdermott's Avatar
    Join Date
    Feb 2008
    Location
    Cornwall
    Posts
    171
    Thank Post
    16
    Thanked 42 Times in 34 Posts
    Rep Power
    21
    Applied a quick fix for this on our network still working on long term fix.

    Quick Fix
    1) Set up a batch file on the server with the home dirs to delete all desktop.ini files from user areas.
    2) Set up a task to run script every 12 hours.

    not perfect but works.

  5. 2 Thanks to jmcdermott:

    bewlay51 (5th April 2010), painejake (5th April 2010)

  6. #4

    Join Date
    Jan 2010
    Location
    Stockport
    Posts
    77
    Thank Post
    39
    Thanked 4 Times in 2 Posts
    Rep Power
    10

    FIXED (work a round !!)

    Hello all and many thanks for your help and replies. I finally fixed the problem by disabling file synchronisation on the home folders.

    This is what I found was happening….

    1. I created a home folder in AD by using \\server\home$\students\%username%

    2. That home folder is empty. There is nothing in the folder so the idea of deleting the desktop.ini file wont work.

    3. The user logs on and a profile is created on the PC.

    4. As soon as the user logs off the folders are synchronised and it is at that moment the home folder is renamed to “My Documents”; I guess thats when the desktop.ini file is copied across.

    A real PAIN!! I’m lucky, the 2008 R2 server and test Win7 are all in a virtual format and I had set it up to configure some Group Polices and test for bugs before going live. I won’t be going live just yet.

    I only have a few hours a week to work on this project and I have spent more time sorting bugs out then getting the GPO’s sorted out.

    Thanks again.
    PS: I know Roseland in Cornwall very well – very nice church.

  7. #5
    macdaddy's Avatar
    Join Date
    Apr 2010
    Location
    New Hampshire
    Posts
    17
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by bewlay51 View Post
    Hello all and many thanks for your help and replies. I finally fixed the problem by disabling file synchronisation on the home folders.
    bewlay51 you are definitely onto something here. The problem does indeed appear to be in the synchronization. How did you stop the synchronization on the home folders. I am running group policy and have not been able to do this.

    Thanks in advance.

  8. #6

    tmcd35's Avatar
    Join Date
    Jul 2005
    Location
    Norfolk
    Posts
    5,619
    Thank Post
    845
    Thanked 881 Times in 731 Posts
    Blog Entries
    9
    Rep Power
    326
    I've just noticed this on our systems. The home folders are stored on Win2k3 servers. When viewed from win2k3 or WinXP the folders are named correctly. When viewd from Win7 or Win08R2 the home folders, of those that have been accessed on a Win7 client, are all listed as 'My Documents'. Weired, but everything works so I haven't worrid about it!

  9. #7

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    11,760
    Thank Post
    1,623
    Thanked 1,877 Times in 1,395 Posts
    Blog Entries
    2
    Rep Power
    422
    Quote Originally Posted by jmcdermott View Post
    Applied a quick fix for this on our network still working on long term fix.

    Quick Fix
    1) Set up a batch file on the server with the home dirs to delete all desktop.ini files from user areas.
    2) Set up a task to run script every 12 hours.

    not perfect but works.
    Would you happen to have the batch script to hand?

  10. #8
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,424
    Thank Post
    10
    Thanked 488 Times in 428 Posts
    Rep Power
    111
    Or you can just have My Documents as a redirect to a sub folder on their home folder as method one suggests. There are 10 profile folders that need redirecting after all (My Saved Games etc). Thats all we do here.

    Username\Documents
    Username\Downloads
    Username\Music

  11. #9

    Join Date
    Jan 2010
    Location
    Stockport
    Posts
    77
    Thank Post
    39
    Thanked 4 Times in 2 Posts
    Rep Power
    10

    File Synchronisation – Stopping

    Sorry, not been around for a while.
    I did fix the problem by disabling file synchronisation on the home folders. I did it on the caching tab of the share, in my case "home$" Simple FIX. The following maybe of some help, but stops all synchronisation....

    File Synchronisation – Stopping
    You may wish to prevent file and folder synchronisation taking place when a user logs off. If so, you will need to edit the two group polices as described below.

    a) Run group policy editor and navigate to “Default Domain Policy” right click and choose edit.
    b) Choose Computer Configuration >Administrative Templates > Networking > Offline files.

    Make the following changes:

    Allow or disallow use of offline files features Disable
    Synchronize all offline files when logging on Disable
    Synchronize all offline files when logging off Disable
    Synchronize all offline files before suspend Disable

    Remove “Make Available Offline” Enabled
    Prevent the use of offline file folders Enabled

    Prohibit “Make available Offline” for those files and folders Disable


    c) Navigate to “Default Domain Policy” right click and choose edit.
    d) Choose Computer Configuration >Administrative Templates > Networking > Offline files.

    Allow or disallow use of offline files features Disable

    NEXT
    e) Right click on the “home” share the select > Sharing > Caching >
    f) Enable the last option “Files and programs from the share will not be available offline”. If wished, this option can be enabled for all shared folders.

    Re-boot the server

  12. 3 Thanks to bewlay51:

    RageRiot (5th April 2012), sonic1485 (30th June 2010), zag (7th June 2011)

  13. #10
    macdaddy's Avatar
    Join Date
    Apr 2010
    Location
    New Hampshire
    Posts
    17
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by bewlay51 View Post
    Sorry, not been around for a while.
    I did fix the problem by disabling file synchronisation on the home folders. I did it on the caching tab of the share, in my case "home$" Simple FIX. The following maybe of some help, but stops all synchronisation....
    Perfect! The best solution I have seen yet. Have implemented it and all is working perfectly. Our one folder redirection policy for XP/7 works as advertised. You are correct this setting stops synchronization for all effected by the Group Policy. So this may not be for everyone. Thanks bewlay51!

  14. #11

    Join Date
    Jan 2010
    Location
    Stockport
    Posts
    77
    Thank Post
    39
    Thanked 4 Times in 2 Posts
    Rep Power
    10
    Quote Originally Posted by macdaddy View Post
    Perfect! The best solution I have seen yet. Have implemented it and all is working perfectly. Our one folder redirection policy for XP/7 works as advertised. You are correct this setting stops synchronization for all effected by the Group Policy. So this may not be for everyone. Thanks bewlay51!

    More then happy to help. This is a great forum and if I can help by passing on some information then I'm happy to do so. I have picked up some very useful tips here and I feel its all about sharing information.

  15. #12

    Join Date
    Mar 2008
    Location
    Cape Town
    Posts
    110
    Thank Post
    8
    Thanked 14 Times in 14 Posts
    Rep Power
    15
    We have had this issue start to crop up now that we have Windows 7 computers starting to show up. Problem is that we still have far more XP computers here, and are likely to have XP for some time to come still. Still, we will try to fix this before it causes any potential issues.

    I must say, it is indeed some strange behaviour, even though it was meant by design.

  16. #13

    Join Date
    Apr 2007
    Location
    Croydon
    Posts
    497
    Thank Post
    18
    Thanked 31 Times in 30 Posts
    Rep Power
    20
    Quote Originally Posted by macdaddy View Post
    Perfect! The best solution I have seen yet. Have implemented it and all is working perfectly. Our one folder redirection policy for XP/7 works as advertised. You are correct this setting stops synchronization for all effected by the Group Policy. So this may not be for everyone. Thanks bewlay51!
    Does anybody know how this would affect folders I do want to make available offline, such as users who have laptops? I don't want to tick the box if it's going to end up breaking something else.

  17. #14
    macdaddy's Avatar
    Join Date
    Apr 2010
    Location
    New Hampshire
    Posts
    17
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by adamf View Post
    Does anybody know how this would affect folders I do want to make available offline, such as users who have laptops? I don't want to tick the box if it's going to end up breaking something else.
    We have used this for the last two months now and have had no problems. For us the GP is placed in the "Computers" OU which houses desktops and laptops. We have a mix of XP and 7. Since implementing this we have had no synchronization. But keep in mind for us we wanted to implement this District wide. We have not seen the home folders effected as well so there is no "renaming" of the home folders as before.

  18. #15
    rpwillis's Avatar
    Join Date
    Aug 2007
    Location
    SalamanderSoft Ltd
    Posts
    176
    Thank Post
    43
    Thanked 61 Times in 49 Posts
    Rep Power
    26
    I've written a PowerShell script which denies read access to the desktop.ini file to a specified group. Anyone in this group will then not have the documents renamed.

    http://blog.salamandersoft.co.uk/ind...network-share/

  19. 2 Thanks to rpwillis:

    cromertech (2nd March 2011), TJIT (10th October 2010)

SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Srv08 - terminal server - home folders change to documents
    By lafleur1977 in forum Windows Server 2008
    Replies: 8
    Last Post: 18th October 2009, 09:22 PM
  2. Replies: 0
    Last Post: 29th August 2009, 12:39 PM
  3. Problem with user My Documents folders
    By misterchris in forum Windows
    Replies: 2
    Last Post: 24th May 2009, 02:53 PM
  4. Vista Renames Server 2003 home folders
    By MACLURE-E in forum Windows Vista
    Replies: 14
    Last Post: 27th January 2009, 08:31 PM
  5. Script to Create My Documents Subject Folders
    By SwedishChef in forum Scripts
    Replies: 15
    Last Post: 5th July 2006, 08:14 AM

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •