Very frustrating problem, as the title suggests, I am trying to deny the user from executing the file, although I want to allow them to be able to delete the file
icacls bat.exe /grant *S-1-1-0:(D) /deny *S-1-1-0:(RX,WDAC)
I have tried a good few combinations, but having no luck :(
Any help would be greatly appreciated