I am running below mentioned command to give myself full access on the file shares without making any changes to the current ACL of all shared folders. However, it is not working and not even throwing any error message.
for /f %i in (u:\users.txt) do cacls \\hdfile01\users$\%i /C /G "AMadm":F
users.txt contains 'cn'. Another thing to notice here is that if I just keep one ID in .txt file and then run my command; it is working. But its not running for all users in loop.
Can somebody please help.