+ Post New Thread
Results 1 to 6 of 6
Windows Thread, mass setting owner on home directories in Technical; Hi All, After having moved all our home drives onto a new server I now need to set the owners, ...
  1. #1
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,746
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    26

    mass setting owner on home directories

    Hi All,

    After having moved all our home drives onto a new server I now need to set the owners, as we use quotas. NTFS permissions have been preserved it's just the owner.

    I have found the following code to run in a batch file:

    for /d %%i in (*) do subinacl /errorlog=subinacl.err /subdirectories %%i\*.* /setowner=DOMAIN\%%i

    Home directories have the same name as the username

    However it is not actually setting anything - subinacl shows 0 for processed and no errors :/

    Am I missing something? I've also tried setowner without the domain just in case.

    Thanks

  2. IDG Tech News
  3. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,839
    Thank Post
    99
    Thanked 750 Times in 585 Posts
    Rep Power
    176

  4. 3 Thanks to Ric_:

    Fivetwelve (10th September 2009), IKWeb (29th July 2011), Oops_my_bad (3rd January 2009)

  5. #3
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,746
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    26
    Thanks.. worked a treat

  6. #4
    mthomas08's Avatar
    Join Date
    Jun 2008
    Location
    Whitfield
    Posts
    1,193
    Thank Post
    68
    Thanked 113 Times in 99 Posts
    Rep Power
    38
    I think I am not having much luck with this thing.. I got the script running fine, I had to click okay several times per home area.. im guessing down to windows security

    All it does is set the domain admin and nothing more - folders are named as usernames as well.

  7. #5
    User3204's Avatar
    Join Date
    Aug 2006
    Location
    Wirral
    Posts
    772
    Thank Post
    55
    Thanked 66 Times in 62 Posts
    Rep Power
    31
    I'm gonna ask the obvious question...

    Did you change the bit that says "BAINS" into whatever your domain is called ?

  8. #6

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,250
    Thank Post
    263
    Thanked 1,035 Times in 935 Posts
    Rep Power
    300
    can you not just change the path in ad on bulk and then it should give every1 the correct permissions anyway. I have a script on the machine at work if you pm tomorrow i will send it across

SHARE:
+ Post New Thread

Similar Threads

  1. Home Directories on a DC - Good or Bad
    By Kyle in forum Windows
    Replies: 8
    Last Post: 15th February 2008, 01:45 PM
  2. SharePoint Server 2003 Home Directories
    By plock in forum Virtual Learning Platforms
    Replies: 0
    Last Post: 10th December 2007, 09:32 AM
  3. Default Profiles - setting user directories
    By speckytecky in forum Windows
    Replies: 0
    Last Post: 22nd June 2007, 07:52 PM
  4. Home Directories on Moodle
    By apeo in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 13th June 2007, 11:20 AM
  5. Mass setting NTFS permissions
    By localzuk in forum Windows
    Replies: 7
    Last Post: 8th January 2007, 04: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
  •