Share via


Remove specific user from ACL via Powershell

Question

Wednesday, April 20, 2016 8:48 AM

Hi all,

I need to recursively remove a user from ACL on a folder and its child objects.

Searching on Internet, I found how to remove user's permission, but not how to remove user from ACL.

Ie, I'm searching to the equivalent in powershell of the action "Delete" on a user in a folder ACL :

Thank you for your help.

Have a good day.

FXE

All replies (2)

Wednesday, April 20, 2016 10:49 AM âś…Answered

Hi FXE,

To achieve your goal, you could use the PowerShell script which is provided on the article below.

PowerShell Script(Function) to Remove NTFS User Permission From The Folders

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-ScriptFunction-c15ab1a7

Here is a similar thread below for your reference.

https://social.technet.microsoft.com/Forums/windowsserver/en-US/9d471477-6846-4dde-b4b4-951fdf8d5560/powershell-removing-acl?forum=ITCG

Best Regards,

Jay

Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Wednesday, April 20, 2016 2:40 PM

Hi Jay and thank you for your answer,

The link https://social.technet.microsoft.com/Forums/windowsserver/en-US/9d471477-6846-4dde-b4b4-951fdf8d5560/powershell-removing-acl?forum=ITCG matches with what I want to do.

Thank you !

Regards,

FXE