+ Post New Thread
Results 1 to 8 of 8
Windows Thread, file ownership in Technical; Hi having moved to a new domain over the summer and moved all user files over. How do I reset ...
  1. #1
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    569
    Thank Post
    106
    Thanked 25 Times in 22 Posts
    Rep Power
    19

    file ownership

    Hi

    having moved to a new domain over the summer and moved all user files over. How do I reset the ownrship for the users files and folders in one hit based on there folder name (username).

    Is there any software or script anyone know of that can help

    Thanks

    Mark

  2. #2

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,074
    Thank Post
    160
    Thanked 937 Times in 731 Posts
    Blog Entries
    3
    Rep Power
    275
    ok, what i normally do to do this is

    - Move the user areas to another location
    - re-create the folders using AD which will re-create all of the security permissions on the folders
    - move the user areas back which will keep the security permissions in place but put all of the documents back under that folder

    Bit of messing about i know, but i personally dont know any other way to do this but i am sure if there is someone else will post

    James.

  3. #3

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,136
    Thank Post
    1,913
    Thanked 1,345 Times in 743 Posts
    Blog Entries
    3
    Rep Power
    396

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,157
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    subinacl (resource kit tool) can do this.

    Assuming you've got something like d:\users\<username> then you can do:

    Code:
    d:
    cd \users
    for /d %i in (*) do subinacl.exe /subdirectories "%i" /setowner="%i"
    The loop will step through each directory and set the owner to be the same name (so directory steve gets owner steve and so on)

    Note that this could take some time if you've got lots of files. if you're using Windows quotas then turn them off while you do this - if any user is over quota then the update process will fail (as you change ownership, the quota count increases. If you try going over the limit then the owner won't get updated but you end up in an inconsistent state)

  5. #5

    john's Avatar
    Join Date
    Sep 2005
    Location
    London
    Posts
    10,407
    Thank Post
    1,520
    Thanked 1,057 Times in 926 Posts
    Rep Power
    303
    Wisesoft to the rescue - http://www.wisesoft.co.uk/software/ntfsfix/default.aspx I used this at the summer to do all our home areas, shared areas and other folders when I moved to our SAN seen as our Edu-move wasn't ready for launch at that time

    Its a great tool and worked very very well for me

  6. #6

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,266
    Thank Post
    242
    Thanked 1,575 Times in 1,254 Posts
    Rep Power
    341
    having moved to a new domain over the summer and moved all user files over. How do I reset the ownrship for the users files and folders in one hit based on there folder name (username).
    AutoShare will do exactly this. It'll take you minutes to do thousands of users

  7. #7

    Join Date
    Feb 2009
    Location
    USA, SC
    Posts
    36
    Thank Post
    3
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Do you know where a non scriptlogic customer could download a copy od autoshare?




    Quote Originally Posted by Michael View Post
    AutoShare will do exactly this. It'll take you minutes to do thousands of users

  8. #8
    marekbrad's Avatar
    Join Date
    May 2006
    Location
    Bradford
    Posts
    138
    Thank Post
    25
    Thanked 38 Times in 31 Posts
    Rep Power
    24
    +1 for NTFS FIX awesome tool

SHARE:
+ Post New Thread

Similar Threads

  1. Search File by Ownership
    By Zoom7000 in forum Windows
    Replies: 8
    Last Post: 1st February 2011, 09:33 AM
  2. Shared ownership homes
    By Little-Miss in forum General Chat
    Replies: 17
    Last Post: 30th April 2009, 08:44 PM
  3. Wikipedia Ownership
    By karldenton in forum General Chat
    Replies: 16
    Last Post: 25th April 2009, 02:18 AM
  4. Ownership and Permissions
    By TechSupp in forum How do you do....it?
    Replies: 2
    Last Post: 5th October 2007, 10:38 PM
  5. File ownership pita!
    By SpuffMonkey in forum Windows
    Replies: 13
    Last Post: 2nd November 2005, 12:23 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
  •