Powershell ACL Take Ownership

Copper Contributor

I have an issue that has me stumped.  I'm working on a large group of files that have incorrect owner information.  I have set the owner to the proper group at the top level, but still find some subfolders with incorrect owners.  If I try to run get-acl on the folder I get an access denied, viewing it through Explorer it shows I don't have read access and cannot see the owner or permissions.  When I take ownership of the folder through windows I can see the owner is not the group I am using, but I am able to fix it.


When I'm trying to use set-acl on the folder I keep getting:

Set-Acl : Attempted to perform an unauthorized operation.


Additional Info

The files reside on an Amazon FSX UNC path.  


Is there anyway to forcible take ownership of these folders through PowerShell?  My AD account has the ability to do that through Explorer.  

1 Reply
Don't see anything other than managing Share permissions with PowerShell, nothing that describes setting ACL's with PowerShell on file-level. Report a Support ticket at Amazon?