Set Permissions on a File or Directory using PowerShell
There are basically two commands which are used to play around with permissions on a fileGet-Acl – The Get-Acl cmdlet gets objects that represent the security descriptor of a file or resource. The security descriptor contains the access control lists (ACLs) of…