+ Post New Thread
Results 1 to 7 of 7
Windows Server 2012 Thread, Home Folder Ownership in Technical; Hi, I've just re-enabled Quotas on my Server 2012 and noticed that loads of home areas were using 0%. This ...
  1. #1
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    647
    Thank Post
    119
    Thanked 89 Times in 73 Posts
    Rep Power
    78

    Home Folder Ownership

    Hi,

    I've just re-enabled Quotas on my Server 2012 and noticed that loads of home areas were using 0%. This means that when the data was robocopied across the files and folders have lost ownership permissions.

    Our Home folders are structured as following:

    Code:
    I:\UserHomes\Borough_-_School Name\Staff\Username
                                       \Student\Year 7\Username
                                                \Year 8\Username
                                                \Year 9\Username
                                                \Year 10\Username
                                                \Year 11\Username
                                                \Year 12\Username
    Domain Administrator has ownership of all the top level folders.

    Is there a feature in Server 2012 that will set ownership of the folder to what the folder is named? Or alternatively does anyone have any scripts that will do this.

    Thanks,

    Michael
    Last edited by linkazoid; 25th September 2013 at 01:53 PM.

  2. #2

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,775
    Thank Post
    146
    Thanked 564 Times in 508 Posts
    Rep Power
    153
    The little utility chown.exe will do this for you, with this batch script:

    Code:
    for /D %%i in (*) do (
    chown -r %%i "%%i\*.*"
    )
    Place chown.exe and the batch file in each root directory, and run it - it sets ownership to the folder name. It's ace, we run it every year when new users are created as the utility we use does not set ownership automatically.

  3. 2 Thanks to 3s-gtech:

    CHR1S (26th September 2013), linkazoid (25th September 2013)

  4. #3
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    647
    Thank Post
    119
    Thanked 89 Times in 73 Posts
    Rep Power
    78
    Thanks!!!

    You have saved me hours of work!

    I've resolved it all in 30 mins with your script and clear instructions above.

  5. #4

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,503
    Thank Post
    1,578
    Thanked 483 Times in 303 Posts
    Rep Power
    217
    I have this running but it seems to change nothing. What am I missing?

  6. #5
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    647
    Thank Post
    119
    Thanked 89 Times in 73 Posts
    Rep Power
    78
    Do you have chown.exe from CHOWN Free Download in the same folder?

  7. Thanks to linkazoid from:

    CHR1S (26th September 2013)

  8. #6

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,503
    Thank Post
    1,578
    Thanked 483 Times in 303 Posts
    Rep Power
    217
    I have a GNU version, I will try that one instead

    Edit - that version seems to be better. Lots of access denied messages now. hmmm

    Edit 2 - Ran it in elevated powershell instead of elevated cmd and it worked great.

    Thanks
    Last edited by CHR1S; 26th September 2013 at 03:02 PM.

  9. #7

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,775
    Thank Post
    146
    Thanked 564 Times in 508 Posts
    Rep Power
    153
    Make sure that the user you're running the program as has Full Control on the root folder and all sub folders to make sure it runs correctly.

SHARE:
+ Post New Thread

Similar Threads

  1. New folders in Home Drives - Ownership
    By Fleetwood in forum Windows Server 2008 R2
    Replies: 3
    Last Post: 11th July 2013, 12:58 PM
  2. replacing files and folders ownership in home drives
    By Bertv in forum Windows Server 2000/2003
    Replies: 4
    Last Post: 17th November 2011, 01:01 AM
  3. change ownership of home folders in bulk
    By jdibsdale in forum Windows
    Replies: 9
    Last Post: 31st March 2010, 04:13 PM
  4. Students are installing IM apps to their home folder
    By bwallman in forum How do you do....it?
    Replies: 30
    Last Post: 20th December 2007, 05:31 PM
  5. Home Folder Shares
    By Gatt in forum Windows
    Replies: 19
    Last Post: 30th May 2006, 04:37 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
  •