I have the Powershell command to access the ACL access.
$folderPermissionList = (Get-Acl -path "C:\Program Files\Logs").Access | ?{$_.IdentityReference -match "$BUILTIN\\Users"} If($folderPermissionList.FileSystemRights -match "FullControl") { & icacls.exe "C:\Program Files\Logs" /Q /T /remove "BUILTIN\Users" } When execute this command on my Windows 10 PC, it is stuck and no output. But when execute the same command on Windows server PC, it is working as expected listed the permissions list.
My requirement is, need to get the ACL list of the particular folder and check the users permissions.
I don't know why it is not executing on Windows 10 OS. Any idea?
icacls.exe?