AndyinJapan
asked on
Mass folder creation and permission set
Ive got an OU with 100 students and I want to have a separate folder for each user with the following permissions
Teachers group= read/write/delete on all folders
Students= read/write/delete on their own folder only
Any ideas how I can scrip this otherwise its a lot of typing?
Many thanks
Andy
Teachers group= read/write/delete on all folders
Students= read/write/delete on their own folder only
Any ideas how I can scrip this otherwise its a lot of typing?
Many thanks
Andy
ASKER
Leew,
Hi there and thanks for your prompt reply!
Sorry, I sholuld have make it more clear but the folders are not made as I wanted to script that as well?
The actually path is OU=Y1,OU=Students,DC=bst,d c=local"
I would like the folders to be in H:\Students\Y6
Sorry......thanks again
Andy
Hi there and thanks for your prompt reply!
Sorry, I sholuld have make it more clear but the folders are not made as I wanted to script that as well?
The actually path is OU=Y1,OU=Students,DC=bst,d
I would like the folders to be in H:\Students\Y6
Sorry......thanks again
Andy
Did you try modifying the script - you would set pathtousers=h:\students\y6 - the script I posted already created the folders if they don't exist. The only other thing you would need to do is add the other OU line - i used variables, but you can just add it directly.
ASKER
Hi again,
thanks for you help on this....
Am getting the following error
Invalid Character
Line 1
Char 1
code: 800A0408
If I take the @echo off part out it then read a error at line 7 char 19
Odd.....
Hey, thanks again for your help on this one
Andy
thanks for you help on this....
Am getting the following error
Invalid Character
Line 1
Char 1
code: 800A0408
If I take the @echo off part out it then read a error at line 7 char 19
Odd.....
Hey, thanks again for your help on this one
Andy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why the B Grade?
Always run tests before implementing a script in production.
Open in new window