Link to home
Start Free TrialLog in
Avatar of Todd Kollars
Todd KollarsFlag for United States of America

asked on

Powershell command to change/remove rights to folders/subfolders/files for a Server2012 network share

server 2012 security error.pdf

When adding a domain user to enable additional security (modify for example) to an already shared network folder, I will sometimes get the attached error applying security.  This may be just for a few files in the folder or many files.  I will get the second error if I cancel the operation instead of continue.


Is there a powershell command to remove all rights to the folders and files within the folder and subfolders and then start the share and security process over?

Avatar of Greg Besso
Greg Besso
Flag of United States of America image

If you can type out the error, happy to try to help. Not wanting to open any attachments :-)
Avatar of Todd Kollars

ASKER

Error Applying Security - An error occurred while applying security information to:  file name and location
Failed to enumerate objects in the container.  Access is denied.  
If I click Continue, the next file that has an error comes up and again, have to select Continue or Cancel.
If Cancel is selected the error Windows Security
If you stop the propagation of permission settings it might lead to an inconsistent state where objects have different settings. If you made this change by mistake, you should apply the correct permission settings immediately.  
User generated image
ASKER CERTIFIED SOLUTION
Avatar of Greg Besso
Greg Besso
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial