jdibsdale Posted February 23, 2009 Posted February 23, 2009 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
saundersmatt Posted February 23, 2009 Posted February 23, 2009 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
Vegas Posted February 23, 2009 Posted February 23, 2009 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??
jdibsdale Posted February 23, 2009 Author Posted February 23, 2009 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
Michael Posted February 23, 2009 Posted February 23, 2009 Autoshare - I use it all the time. A very handy tool
saundersmatt Posted February 23, 2009 Posted February 23, 2009 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
mthomas08 Posted March 31, 2010 Posted March 31, 2010 Can I get the script or is that the entire thing there ?? Does it work on 2008 server?
jdibsdale Posted March 31, 2010 Author Posted March 31, 2010 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.
mthomas08 Posted March 31, 2010 Posted March 31, 2010 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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now