Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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??

Posted

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

Posted

 

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

  • 1 year later...
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...