How can I compare against FileSystemRights using Powershell?
问题 I want to check whether a given user has access to a given folder - by checking if they have "Modify" access assigned to them. I thought that the PS for that would be: (Get-Acl .\myfolder).Access | ?{$_.IdentityReference -eq "BUILTIN\Users"} |?{$_.filesystemrights.value -contains "Modify"} But the final part of that isn't working - I get back no result. But I know that they have Modify access - if I put in: (Get-Acl .\myfolder).Access | ?{$_.IdentityReference -eq "BUILTIN\Users"} | select