Advances Folder Permission script
I’m going through all of our kids folders one by one and changing the permissions, I’ve been having problems with something on the network changing the permissions on random student home folders to Everyone: delete and nothing else.
I’m going through them and setting the Advanced Security settings for the folder manually, there has to be an easy way to set them. I did think about using Cacls or Xcacls as i have done in the past but after looking at it, it’s not granular enough for what I need, the settings are far to broad.
Before I go and try and develop my own script or something to do it I thought I’d ask.
---- Things it should do ----
Start at the top folder (Year Folder) and look down every folder contained within.
Each Folder is a new Home folder of a new user
Needs to look at the folder name and use it later
Re-set the file permissions to inherit from above and remove the permissions currently set for the user
(I have already made the changes to permissions the files inherit from the primary folder, that was easy)
Set a new permission based on the folder name (this is where cacls/xcacls won’t work)
The permission needs to be Allow everything except, Change Permissions and Take Ownership
it should then propagate this down the home folder tree and move on to the next folder till it does not have any folders left.
Im not looking forward to doing it manually, i am thinking it will fix the problem im having.
Can anyone point me in the right direction? I don’t know how to get vbscript to access the advanced file permissions, that’s really what i need help with, I think I can get it to do everything else, propagation might be a problem though :(
Any help would be appreciated, thanks