You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change code in NTFLAccessEntry.psm1 file:
Proposed Solution:- to make the resource compatible with PowerShell core. We should replace the GetAccessControl method calls with ‘Get-Acl’ cmdlet
existing: $currentAcl = $fileSystemItem.GetAccessControl('Access')
new: $currentAcl = Get-ACL $fileSystemItem
The text was updated successfully, but these errors were encountered:
@mattyt0406 The reason that we moved away from Get-Acl is due to the AccessControl mask that Get-Acl uses ("15"/"All"). There are instances where that cmdlet also stores the owner and when using it to set an Acl where the owner cannot change the resource will throw an error. So to fix this issue, we used the GetAccessControl method with the "2" / "Access" option so that the owner information isn't stored. https://docs.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.accesscontrolsections?view=netframework-4.8
Change code in NTFLAccessEntry.psm1 file:
Proposed Solution:- to make the resource compatible with PowerShell core. We should replace the GetAccessControl method calls with ‘Get-Acl’ cmdlet
existing: $currentAcl = $fileSystemItem.GetAccessControl('Access')
new: $currentAcl = Get-ACL $fileSystemItem
The text was updated successfully, but these errors were encountered: