+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 39
Windows 7 Thread, Windows 7 renamed our user network folders to my documents in Technical; Originally Posted by dombera Hi! I`m having a problem with Windows 7 recently deployed in our network. When user log ...
  1. #16
    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 dombera View Post
    Hi! I`m having a problem with Windows 7 recently deployed in our network.
    When user log into windows 7 machines their network home folder gets renamed to My Documents. But when I run dir command via command prompt it shows all folders with proper user names. Please see attached screen shots.
    Is there anything I could do to prevent it from happening and get proper folder names back??
    Thank you for help in advance.Attachment 8044Attachment 8044
    The real problem is when you redirect the user to their home folder Windows 7 by default turns on synchronization. This then rewrites the "desktop.ini" file in the home folder. To correct this we added a new Group Policy, attached is the settings.

    nosync.jpg

  2. #17

    Join Date
    Jul 2010
    Posts
    10
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Deleting the desktop.ini file

    Ok, i have a setting in a gpo that runs a bat file that removes the file.
    However, windows must create this file just after login, so the file comes back.

    I have done the same on the logout script, but it means while the student is logged in, the folder is called my documents.

    I have tried the settings in the gpo that has been mentioned for not creating them, but it does not work in out enviroment.

    alan.

  3. #18
    rpwillis's Avatar
    Join Date
    Aug 2007
    Location
    SalamanderSoft Ltd
    Posts
    175
    Thank Post
    41
    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/

  4. 2 Thanks to rpwillis:

    dhoward_westexetc (17th December 2010), Rawdon (6th October 2010)

  5. #19

    Join Date
    Jul 2010
    Posts
    10
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Gpo script to sort out desktop.ini

    HI, thanks to everyone for all the info on this.
    This is what i have done, i got some of the info from another forum so i cannot take the credit for this, Im just passing the info on.

    To rectify the problem a script called Rights.cmd is run on login via a GPO that removes the rights of Administrators and Staff from reading the ini file and therefore you see the users home directory correctly.

    Rights.cmd

    %windir%\system32\icacls.exe %homedrive%\Desktop.ini /deny "Domain Admins":r

    %windir%\system32\icacls.exe %homedrive%\Desktop.ini /deny Administrators:r

    %windir%\system32\icacls.exe %homedrive%\Desktop.ini /deny Staff:r

  6. Thanks to ajcc22 from:

    altonPM (15th October 2010)

  7. #20
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,421
    Thank Post
    10
    Thanked 486 Times in 426 Posts
    Rep Power
    110
    I don't understand the issue with this at all.

    Is everyone *not* redirecting the other 10 folders in Vista/7 that need doing to stop them pointing to the local machine? I have them all redirected to the users home folder as a subfolder so that it's not an issue.

    Other things to look out for: You get *two* documents etc (one pointing to the local drive) in the users folder of you don't use move the contents or remove the 11 folders from the default/mandatory/netlogon profile that is used to create the users profile.

  8. #21

    Join Date
    Oct 2010
    Location
    New Hampshire
    Posts
    24
    Thank Post
    6
    Thanked 8 Times in 5 Posts
    Rep Power
    9
    I also wrote a PowerShell script - I think it's a modification of the one that rpwillis posted as I remember the Salamander from another forum somewhere :-) I have put in red the parameters you would want to change for your environment. I am finding PowerShell to be a great tool!

    (the smiley face is actually two colons followed by the word DENY)



    $InitialFolder = "\\depot\studentstest$\"

    #$Files = Get-ChildItem $InitialFolder -include desktop.ini -recurse -force
    #$folders = Get-ChildItem W:\

    $folders = Get-ChildItem | where-object {$_.psiscontainer};
    foreach ($folder in $folders)
    {
    $Files = Get-ChildItem $folder -Filter desktop.ini -Force
    Write-Host Processing $folder , $folder.count files found -foreground "BLACK"

    Foreach ($File in $Files)
    {
    if ($File -ne $null)
    {
    $colRights = [System.Security.AccessControl.FileSystemRights]"Read"
    $InheritanceFlag = [System.Security.AccessControl.InheritanceFlags]::None
    $PropagationFlag = [System.Security.AccessControl.PropagationFlags]::None

    $objType =[System.Security.AccessControl.AccessControlType]:ENY

    $objUser = New-Object System.Security.Principal.NTAccount("Administrators")

    $objACE = New-Object System.Security.AccessControl.FileSystemAccessRule `
    ($objUser, $colRights, $InheritanceFlag, $PropagationFlag, $objType)

    $objACL = Get-ACL $File
    $objACL.AddAccessRule($objACE)

    Set-ACL $file $objACL
    }
    }

    }

  9. #22

    Join Date
    Jan 2008
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I can't get this script to work but i don't think its going to help anyway.
    I have managed to get the other script to work from here Richard Willis – SharePoint Learning Kit Coordinator, SalamanderSoft Owner How To Stop Home Folders Being Renamed Documents in the Network Share
    However the problem is that all our users have full control over their profile path.
    so currently the desktop.ini has full control to the user and deny for security group "year 7" so i still see it as "my documents"
    what would be good is if that script read the folder name (because its named after the username) and set deny read for that user.

  10. #23

    Join Date
    Jan 2008
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I got that script to work now. I have to put in the group or user of the affected person. so if im a domain admin i have to deny myself to the desktop.ini so that i can see it. therefore i also then have to add teachers to the deny. its no good adding deny for the student as they are not the ones with the problem

  11. #24

    Join Date
    Dec 2008
    Posts
    14
    Thank Post
    2
    Thanked 5 Times in 3 Posts
    Rep Power
    12
    Is there a fix for this yet?

    Were still having the same problem

  12. #25
    Cools's Avatar
    Join Date
    Jan 2009
    Location
    Bedfordshire
    Posts
    498
    Thank Post
    24
    Thanked 62 Times in 57 Posts
    Rep Power
    25
    Quote Originally Posted by RobFuller View Post
    Explicitly Disabling this settings in GP worked for me, can only be found on a 2008R2 machine though.
    No its on my 2008 server and its not R2.

  13. #26

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,675
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    45
    Quote Originally Posted by Jamesdavid3 View Post
    Is there a fix for this yet?

    Were still having the same problem
    I just used FSRM to disable the desktop.ini file. Seems to have worked here and I've not seen any real negative effects.

  14. #27
    DrCheese's Avatar
    Join Date
    Apr 2008
    Posts
    1,023
    Thank Post
    97
    Thanked 158 Times in 107 Posts
    Rep Power
    58
    I just used FSRM to disable the desktop.ini file. Seems to have worked here and I've not seen any real negative effects.
    Was the first fix I tried when I was testing 7 during the summer, whenever I did that it would cause logon to hang at "Redirecting folders" for an extra 10/15 seconds per logon.

  15. #28

    Join Date
    Feb 2007
    Posts
    189
    Thank Post
    6
    Thanked 8 Times in 8 Posts
    Rep Power
    17
    is thre a fix for this yet??

    I had tried all gpo settings etc. What a nightmare.

  16. #29
    Bezwick's Avatar
    Join Date
    Feb 2008
    Location
    Nottinghamshire
    Posts
    354
    Thank Post
    92
    Thanked 54 Times in 41 Posts
    Rep Power
    24
    No as far as i know, we got round it by deleting all the desktop.ini files on the users homespaces. Then using Windows server file screening prevent users from creating a new desktop.ini file. Its worked for us without any problems.

  17. #30

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,228
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Windows 7 delete/hide Local Documents Folders
    By thatley in forum Windows 7
    Replies: 15
    Last Post: 24th September 2013, 04:13 PM
  2. Need To Move The Network Documents Folder (Every User Account)
    By pritchardavid in forum Windows Server 2000/2003
    Replies: 10
    Last Post: 11th May 2010, 06:33 PM
  3. Replies: 0
    Last Post: 29th August 2009, 12:39 PM
  4. User Network Folders
    By OllieC in forum Windows
    Replies: 7
    Last Post: 4th August 2009, 04:15 PM
  5. Problem with user My Documents folders
    By misterchris in forum Windows
    Replies: 2
    Last Post: 24th May 2009, 02:53 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •