Attempt to configure ACLs for hidden files/folders using the cACL resource. The resource will fail to configure with an error that the target item is not found.
If you execute the Get-Item cmdlet without the -Force switch, that is not get the hidden files/folders. You can fix this issue by changing it to add the -Force parameter.
Description
Attempt to configure ACLs for hidden files/folders using the cACL resource. The resource will fail to configure with an error that the target item is not found.
The DSC configuration that is used to reproduce
Verbose logs
Environments
Suggested solution
If you execute the
Get-Item
cmdlet without the-Force
switch, that is not get the hidden files/folders. You can fix this issue by changing it to add the-Force
parameter.https://github.com/guitarrapc/GraniResource/blob/3ea0c8cc1074284dbd37991cd67bbbeacae1fce1/DSCResources/Grani_ACL/Grani_ACL.psm1#L92-L94