+ Post New Thread
Results 1 to 10 of 10
Windows Server 2008 R2 Thread, User folders being renamed "Documents" in Technical; Hi. We have a folder with about 1400 user folders in it. When you look at it from a command ...
  1. #1

    Join Date
    Sep 2010
    Posts
    28
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    User folders being renamed "Documents"

    Hi.

    We have a folder with about 1400 user folders in it. When you look at it from a command prompt it is fine, but if you use Explorer a number of the folders, several hundred, are displayed as "Documents", which makes finding the correct folder very hard. Anyone have any ideas?

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,977
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    This is by design if your users documents isn't 1 level inside their username folder i.e you redirect my documents straight to their username folder this is the result.

    Ben

  3. #3

    sparkeh's Avatar
    Join Date
    May 2007
    Posts
    6,259
    Thank Post
    1,138
    Thanked 1,463 Times in 980 Posts
    Blog Entries
    22
    Rep Power
    457

  4. #4

    Join Date
    May 2008
    Posts
    508
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Is there any way i can set the permission on the desktop.ini by using a script? i dont really fancy doing for 1200 users!!!

  5. #5


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,534
    Thank Post
    271
    Thanked 752 Times in 590 Posts
    Rep Power
    218
    Many ways to do it.

    Powershell, for example:

    Code:
    $usernames = get-childitem F:\Shares\Users\* 
    foreach ($name in $usernames ){icacls $name\desktop.ini /deny "Administrators:(R)"}
    Change path, change your group to suit.

  6. #6


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    you can also use file server resource manager to stop creation of any files called desktop ini and just search and delete existing ones

  7. #7

    Join Date
    May 2008
    Posts
    508
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Quote Originally Posted by pete View Post
    Many ways to do it.

    Powershell, for example:

    Code:
    $usernames = get-childitem F:\Shares\Users\* 
    foreach ($name in $usernames ){icacls $name\desktop.ini /deny "Administrators:(R)"}
    Change path, change your group to suit.
    I have just tried the script and it doesn't work. Im really new to Powershell so not sure where to start!

  8. #8

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    8,941
    Thank Post
    232
    Thanked 1,510 Times in 1,206 Posts
    Rep Power
    328
    You don't need or have to run any scripts to get around this. Have look here. Scroll down to 'Managing User Documents'.

  9. #9

    Join Date
    May 2008
    Posts
    508
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    One of our issues at the moment sometimes on various students the security permissions seem to keep stripping out on their home directory. It seems to only leave in Everyone with the Deny Delete permission and not inhereted. I thought maybe its the desktop.ini that seems to be causing it.

  10. #10


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,534
    Thank Post
    271
    Thanked 752 Times in 590 Posts
    Rep Power
    218
    Quote Originally Posted by techie08 View Post
    I have just tried the script and it doesn't work. Im really new to Powershell so not sure where to start!
    Code:
        Directory: C:\testdir
    
    
    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        2011-09-23     14:11            barney
    d----        2011-09-23     14:11            bob
    d----        2011-09-23     14:12            fred
    d----        2011-09-23     14:12            keith
    
    
    PS C:\testdir> $usernames = get-childitem c:\testdir\*
    PS C:\testdir> foreach ($name in $usernames){icacls $name\desktop.ini /deny "Administrators:(R)"}
    processed file: C:\testdir\barney\desktop.ini
    Successfully processed 1 files; Failed processing 0 files
    processed file: C:\testdir\bob\desktop.ini
    Successfully processed 1 files; Failed processing 0 files
    processed file: C:\testdir\fred\desktop.ini
    Successfully processed 1 files; Failed processing 0 files
    processed file: C:\testdir\keith\desktop.ini
    Successfully processed 1 files; Failed processing 0 files
    PS C:\testdir>
    It's two cli commands, not a script.
    You run one after the other from a Powershell prompt (i.e you need to install powershell on the machine you're using to change the files).
    The commands assume the user you're running as has sufficient access to the folder tree.

SHARE:
+ Post New Thread

Similar Threads

  1. User Home Folder Renamed to documents - fixed in SP1 ??
    By bewlay51 in forum Windows Server 2008 R2
    Replies: 7
    Last Post: 13th April 2011, 02:30 PM
  2. Replies: 0
    Last Post: 29th August 2009, 12:39 PM
  3. Ownership of user folders
    By Bugs in forum Windows Server 2000/2003
    Replies: 10
    Last Post: 4th February 2009, 02:06 PM
  4. Profile & User folders permisions
    By sLiDeR in forum Network and Classroom Management
    Replies: 4
    Last Post: 9th September 2008, 07:28 PM
  5. Replies: 0
    Last Post: 17th February 2007, 04:43 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
  •