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 ...
-
23rd February 2009, 01:53 PM #1 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
-
-
IDG Tech News
-
23rd February 2009, 01:58 PM #2 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
-
-
23rd February 2009, 02:01 PM #3 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??
-
-
23rd February 2009, 02:08 PM #4 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
-
-
23rd February 2009, 02:09 PM #5 Autoshare - I use it all the time. A very handy tool
-
-
23rd February 2009, 02:18 PM #6 
Originally Posted by
jdibsdale
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
-
-
23rd February 2009, 02:30 PM #7 Thanks Matt, that's worked!
-
-
31st March 2010, 03:53 PM #8 Can I get the script or is that the entire thing there ??
Does it work on 2008 server?
-
-
31st March 2010, 04:10 PM #9 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.
-
-
31st March 2010, 04:13 PM #10 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: 
Similar Threads
-
Replies: 14
Last Post: 20th September 2009, 03:08 PM
-
By bmdixon in forum Windows
Replies: 13
Last Post: 11th February 2009, 11:07 AM
-
By Bugs in forum Windows Server 2000/2003
Replies: 10
Last Post: 4th February 2009, 02:06 PM
-
Replies: 5
Last Post: 30th October 2008, 03:46 PM
-
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
-
Forum Rules