I want to know how to provide a user with exclusive access to a folder, but not other folders. The folder root is located here:
DC1\\UserFolders\%username%
I use a GPO to map that user's folder. But the problem is that it only maps if the user has access to the root folder. The problem with that is, they can get nosy and navigate to other user's folders.
I am looking for help on a script that would allow me to make that users folder exclusive to that person only. And the ability to see other folders impossible.
Below is what I have tried (added to the startup script):
icacls D:\UserFolder /inheritance:d
icacls D:\UserFolder\%username% /grant "%username%":(m)
But it doesn't seem to do anything. What am I doing wrong, and is there a better script to run for this?