Hello.

I tried searching all the posts.

I still havn't found an example that shows me how to check if the permissions for a user group already exists on a folder or file.

I understand cacls and xcacls and I can add permissions just fine.
But my problem is I don't want to run this part of the script everytime my users log into the network.

I only want the login script to add the permission to the workstation only when needed.

But honestly I have searched unless I'm searching with the wrong search criteria...?