cNtfsAccessControl
cNtfsAccessControl copied to clipboard
cNtfsPermissionEntry.psm1
Do not use "APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES " but "ALL RESTRICTED APPLICATION PACKAGES " only as Principal and I have done few modifications to support that cNtfsPermissionEntry DscResource.
@SNikalaichyk Could you review it and merge it .Please do let me know if you have any queries
Hi @shubhamgupta514, first of all thanks for submitting this PR! This is quite a big change, and thus will require a thorough review and testing. I would also want to get more details about the issue(s) this PR is meant to address. After a quick look:
- The code needs to match the overall formatting style, look, and feel of the module.
- The
Convert-FileSystemRightsInteger
function needs to have tests and follow the style as it's very messy (aliases, lots of comments etc).
@SNikalaichyk Thanks for your comments.
I am not the original author of Convert-FileSystemRightsInteger. I copied the source code from Technet and already mentioned the link for the same as comment above the function.
About the PR, I am getting an error "Some or all identity references could not be translated" I am trying modifying the permissions for APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES on a particular file or folder.
What I found after some debugging if we only use "ALL RESTRICTED APPLICATION PACKAGES" without the domain and use of the sid of the same in access rule as an argument in modifyaccessrule. Everything is working fine.