DeploymentGuy
asked on
AD script needed to inherent permissions from parent object tofix home drive and shared drive issues
I'm looking to get some assistance with a script needed to resolve the following issue:
Issue: - Customer has an Enterprise NAS solution with EMC. They were doing Scheduled Maintenance on it and they (EMC) were to delete a file system (one of the replicated areas at the other sites) and deleted the wrong file system inadvertently. They deleted the production file system at their Estherville, IA location. The Customer lost access to home drives and shared drives that go out to everyone. Users are getting permissions error “Access is denied”. The H drive is mapped in AD to: \\EV-NAS\Stf-Home\ (Staff Employees) and \\EV-NAS\ACD-Home\ (Students). The basic fix is to go in and take ownership of the object so that they inherent permissions from the parent object.
The manual fix for the issue is as follows:
• On the Estherville DC access the \\EV-NAS\Stf-home share (users are listed inside of this directory)
• Right click on the user folder and select Properties, on the Security Tab choose Advanced. Owner, Edit and check the box ‘Replace Owner on subcontainers and objects’
• Go back into Properties, on the Security Tab choose Advanced, Ensure the box ‘Include inheritable permissions for this object’s parent’ is selected
Does anyone have a script that could automate this process?
Thanks in advance!
Issue: - Customer has an Enterprise NAS solution with EMC. They were doing Scheduled Maintenance on it and they (EMC) were to delete a file system (one of the replicated areas at the other sites) and deleted the wrong file system inadvertently. They deleted the production file system at their Estherville, IA location. The Customer lost access to home drives and shared drives that go out to everyone. Users are getting permissions error “Access is denied”. The H drive is mapped in AD to: \\EV-NAS\Stf-Home\ (Staff Employees) and \\EV-NAS\ACD-Home\ (Students). The basic fix is to go in and take ownership of the object so that they inherent permissions from the parent object.
The manual fix for the issue is as follows:
• On the Estherville DC access the \\EV-NAS\Stf-home share (users are listed inside of this directory)
• Right click on the user folder and select Properties, on the Security Tab choose Advanced. Owner, Edit and check the box ‘Replace Owner on subcontainers and objects’
• Go back into Properties, on the Security Tab choose Advanced, Ensure the box ‘Include inheritable permissions for this object’s parent’ is selected
Does anyone have a script that could automate this process?
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/questions/26887297/Modify-ACL-Folder-SubFolders-ACL.html
Obviously the script I wrote didn't work for him because he wasn't the owner. But using that as your base, you might be able to find something that works for your environment.
Good luck.
DH