+ Post New Thread
Results 1 to 10 of 10
Windows Thread, change ownership of home folders in bulk in Technical; I need to change the ownership of all students (approx 1000) home folders to their respective owner to enable disk ...
  1. #1
    jdibsdale's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    84
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    13

    change ownership of home folders in bulk

    I need to change the ownership of all students (approx 1000) home folders to their respective owner to enable disk quotas, as I don't have the R2 version of Windows 2003 installed. Does anyone know how to do this in bulk, by a script or however?

    Thanks,
    Jenny

  2. #2

    Join Date
    Jul 2005
    Location
    Rugby
    Posts
    432
    Thank Post
    17
    Thanked 66 Times in 61 Posts
    Rep Power
    35
    I have a script that will change ownership on home directories using subinacl.
    It enumerates an OU for all users, reading their homedirectory path and username, and passes these to subinacl.

    Let me know if you want it.

    Matt

  3. #3
    Vegas's Avatar
    Join Date
    Jul 2005
    Location
    Gloucestershire
    Posts
    371
    Thank Post
    19
    Thanked 38 Times in 31 Posts
    Rep Power
    30
    AD - highlight all students and use the profile tab, set home folder to \\server\students\%username%
    This will give each student full access to their home folder??

  4. #4
    jdibsdale's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    84
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    13
    Vegas-

    Is this the Subinacl script you had:

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

    I tried this one above but it only changed the files beneath ownership it errored on the folders.

    Saundersmatt - the students have permission already it's the ownership i need to change which you can't do in bulk in windows

  5. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    Autoshare - I use it all the time. A very handy tool

  6. #6

    Join Date
    Jul 2005
    Location
    Rugby
    Posts
    432
    Thank Post
    17
    Thanked 66 Times in 61 Posts
    Rep Power
    35
    Quote Originally Posted by jdibsdale View Post

    for /d %%i in (*) do subinacl /errorlog=subinacl.err /subdirectories %%i\*.* /setowner=%%i
    I assume then that you have home directories in the same format as username. That script is far simpler then than mine.

    To change the folders as well do:


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

    As well as the previous script.

    Matt

  7. #7
    jdibsdale's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    84
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    13
    Thanks Matt, that's worked!

  8. #8
    mthomas08's Avatar
    Join Date
    Jun 2008
    Posts
    1,608
    Thank Post
    132
    Thanked 165 Times in 146 Posts
    Rep Power
    62
    Can I get the script or is that the entire thing there ??
    Does it work on 2008 server?

  9. #9
    jdibsdale's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    84
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    13
    That was the whole script. No idea if it works in Windows 2008 though. I'm surprised that you need a script to do this in server 2008.

  10. #10
    mthomas08's Avatar
    Join Date
    Jun 2008
    Posts
    1,608
    Thank Post
    132
    Thanked 165 Times in 146 Posts
    Rep Power
    62
    Permissions didnt copy over, my fault I should of done a backup/restore but doing During work hours..(normal day).

    Managed to get AD to easily give access and with Inherit so main thing I look for now is the final tweaks. Ownership being one, I really dont see anything In 08 that allows me to do this quicker?

SHARE:
+ Post New Thread

Similar Threads

  1. Create Bulk users and Folders
    By DanW in forum Scripts
    Replies: 14
    Last Post: 20th September 2009, 03:08 PM
  2. Bulk Change User Setting
    By bmdixon in forum Windows
    Replies: 13
    Last Post: 11th February 2009, 11:07 AM
  3. Ownership of user folders
    By Bugs in forum Windows Server 2000/2003
    Replies: 10
    Last Post: 4th February 2009, 02:06 PM
  4. Replies: 5
    Last Post: 30th October 2008, 03:46 PM
  5. Bulk Change Local Administrator Passwords.
    By Nij.UK in forum Windows
    Replies: 14
    Last Post: 15th June 2007, 01:45 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
  •