Newton Posted May 20, 2010 Posted May 20, 2010 I need to set the permisons on the home folders of my users to just the user and the administrator having full control. The user name is the same as the folder name, is there an easy way to do this? Folder stucture d:\HomeFolders\User1 .......................\user2 .......................\user3
mrbios Posted May 20, 2010 Posted May 20, 2010 Take a look at this: SetACL - Windows permission management I personally have no idea how to use it, never have, but i know that's how it was done last time ours was done
jmcdermott Posted May 20, 2010 Posted May 20, 2010 Just been through this again, solution i used was as follows: 1) command line on server 2) cd to the home directory folder, in my case cd u:\students\09 3) dir /b >>c:\students.txt 4) open c:\students.txt, select all then copy into an excel sheet in one column A. 5) in column B type: echo y|cacls 6) in column C type the home dir path eg u:\students\09or for you d:\HomeFolders\ 7) in column D type: /c /g yourdomain\ 8) in column E type: :f /g yourdomain\administrators:f 9)now for the magic in column F type: =B1&" "&C1&A1&" "&D1&A1&" "&E1 10) you should now have a command line to change the permission as requested if you use edit fill down on all columns to make each one as long as column A then at the end copy and paste column F into a text file save it as a batch file then run it. hope this helpsexample.xls 1
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