Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, July 7, 2017 8:27 AM
Hi,
I am having issues with the permissions on the user folders within the user share for redirected folders.
A user has been messing with the permissions and managed to lock all the users out of their home drives.
I need a way of resetting the permissions. When I manually reset them for particular users, all is fine. But I have well over 300 users I need to reset the permissions for.
From what I can tell the only way to fix this issue is by using PowerShell. The problem is, I am a very basic PowerShell user and I do not have a clue where to start. I have seen a few guides but they seem ambiguous to me and I cannot follow them.
Can anyone point me in the direction of a script to accomplish the above?
Many thanks
All replies (4)
Friday, July 7, 2017 8:37 AM
If you set the root folder correctly the system will set each users folder correctly.
You should never try to adjust the user folders. Group Policy and the GP engine are in charge of this. Manually setting them or setting the shares root folder wrong will cause exactly the issue you are having.
\(ツ)_/
Friday, July 7, 2017 8:40 AM
I know it should never be messed with however a user inadvertently did this, the reason is unknown.
Are you saying if I correct the root folder permissions the rest will fix themselves? I don't think this is the case as I still have hundreds of users unable to access home drives / my docs.
Friday, July 7, 2017 8:47 AM
If that is the only folder missing then it is likely someone took ownership of all folders all the way to the end.
Backup all files with RoboCopy but do not save security. Remove all user folders and allow GP to recreate them then RC the files back for each users as they have recreated their folders.
You can also just rest ownership of all folders to the user that owns them. SetOwner can do this and can propagate the ownership.
This forum is not really a support forum. IF you need scripts check the Gallery as there are some scripts that may be useful as starters.
Since you have a major outage I recommend contacting a consultant with training in Windows' GP and AD who will work with you to put this back together.
\(ツ)_/
Friday, July 7, 2017 7:53 PM
Hi,
I agree with JRV, it is not a support forum. But I will try to think with you, it's annoying if you have 300 users on your neck;)
Assuming you are the network administrator, you also have access to the backup of the homedirs. Restore the root folder with the underlying folders(homedirs) to a different location. Change the path to the homedirs for all users and point them to the new location.
Now, the users can work with the homedirs and gives you space to figure out how you remove the other folders.
Sincerely, Martien van Dijk
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Check out My Blog!