I'm running Windows Server 2016 and attempting to grant a non-administrative user enough credentials to be able to run a script.
When I run this as the user in question, I get the error "File/Directory in not readable", as demonstrated in this screenshot:
That said, I've used the following icacls permissions:
icacls "D:\LogFiles" /grant DOMAIN\USER:(OI)(CI)RD
and I'm still getting the error.
Can someone please do a sanity check on this one for me? What should I be assigning to D:\LogFiles so that the folder and all subfolders are readable for copying?