How do you do....it? Thread, Assign each user permission to their own Home directory (in Bulk) in Technical; Hi
After having trouble with permissions I need to re add permission for each user to access their own my ...
15th December 2010, 08:32 PM #1
Assign each user permission to their own Home directory (in Bulk)
After having trouble with permissions I need to re add permission for each user to access their own my documents.
E.g give the user bloggsf permission on the folder bloggsf
Is there a way to do it in bulk as obviously doing each user may take a while?
I have looked at ADModify but had no luck.
15th December 2010, 08:36 PM #2
David's tool here should sort it out for you nice and quick.
15th December 2010, 09:35 PM #3
could you not just select all of the users in AD and type \\server\folder\%username% in the home directory option them click OK ...this should then give users full access to the home directories again
15th December 2010, 10:14 PM #4
This will work but only if you do not have a similar structure to ours for our students and staff.
Originally Posted by mtdmitchell
Our students are divided up by year group and their home folders cannot be described by simply using %username% because the folder named after their username contains a 'Cached' folder.
So a Year 7 student username will start with 10 [because they joined the school in 2010]
The path to Raymond Baxter's home folder in year 7 would be:
The AD path to set this for all of the users in the Year 7 OU is:
While for Year 8 it would be:
The Cached folder is a remnant from an old network. I just thought I should highlight this incase you have a similar folder structure.
15th December 2010, 10:54 PM #5
Another vote for that Wisesoft tool, I use it all the time to do permissions and its great
Originally Posted by kmount
15th December 2010, 11:08 PM #6
You could use cacls in a for loop in a batch script, or you can do something similar in powershell with get-acl and set-acl cmdlets. It is more work in the short term but you can customise your scripts to also do other things like populate other fields in AD, create the shares on user folders, put users into the correct security groups etc. Could save you time in the long run.
15th December 2010, 11:28 PM #7
Done this many times with cacls, as it sets the Ownership for FSRM. ADModify sorts the permissions nicely though.
16th December 2010, 12:02 AM #8
if you pm me in the morning so i remember i will post a copy of the script we use to do it
16th December 2010, 12:28 AM #9
So are you trying to get the home folders paths set in AD or are you trying to set the NTFS permission back on the folder.
If you are trying to set the NTFS permissions back on the folder I had the same problem earlier in the week and used the Wisesoft NTFS Fix utility -
http://www.wisesoft.co.uk/software/ntfsfix/default.aspx its great and doesn't need scripting.
You just select the base folder such as D:\Students\Intake2004\ and then tell it to set the permissions as %foldername% - so folder 12345 grants the user 12345 the permissions you select and so on and so forth.
Thanks to eddyc from:
tech_guy (16th December 2010)
16th December 2010, 01:20 AM #10
Yes quite right it wont work on your network, but its not your network in question? and not a normal structure
Originally Posted by DaveP
16th December 2010, 08:24 AM #11
Why not spend the time making your structure more normal and then use the tool?
16th December 2010, 09:25 AM #12
Just change the names in the " to which ever groups you need to set permissions to then behind the : f means full control :m means modify : r means read only
for /d %%1 in (*) do echo y|cacls %%1 /t /g %%1:F administrators:f "manage student data":r "domain admins":f System:F "teaching Staff":r
By Geoff in forum Windows
Last Post: 14th June 2013, 05:04 PM
By siuko in forum How do you do....it?
Last Post: 20th June 2012, 12:29 PM
By mb2k01 in forum Wireless Networks
Last Post: 20th February 2011, 04:34 AM
By LukeC in forum Virtual Learning Platforms
Last Post: 19th January 2010, 07:21 PM
By dsm in forum Windows Server 2008
Last Post: 16th June 2009, 09:54 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)