Complete denial of access to a folder or file

After setting the ban, the object can neither be opened, nor deleted, nor copied, nor renamed. The ban is set for the "Everyone" group.

Deny access

icacls "C:\my_file.txt" /deny *S-1-1-0:F

Open access

icacls "C:\my_file.txt" /grant *S-1-1-0:F

Add blocking setting to file and folder context menu

Размер: 1.1 KB, дата: 24 May. 2021

Remove from context menu

Размер: 34 B, дата: 24 May. 2021

The context menu should be called while holding Shift

If you need without using Shift, delete the lines:"Extended"=""

Author: admin