0

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

Ben
  • 1
  • 1

1 Answers1

1

You just need to use /deny and X.

i.e.:

icacls bat.exe /deny *S-1-1-0:(X)

This will allow a user to delete the file but not execute it.

slm
  • 7,615
  • 16
  • 56
  • 76