Protect folder from deletion and change

Prevent all users from deleting the folder and its contents

icacls "C:\my_folder" /deny *S-1-1-0:(DE,DC) /t /c

Cancel the ban

icacls "C:\my_folder" /grant *S-1-1-0:(DE,DC) /t /c

Instead of the SID of the "Everyone" user group (S-1-1-0), you can use the name of any group or user (icacls "C:\my_folder" /deny Все:(DE,DC) /t /c)

/deny - deny
/grant - allow
DE - delete
DC - & nbsp; deleting subfolders
/t - perform the operation on all files in all subdirectories
/c - do not interrupt the operation if errors occur

Additional prohibitions (add in parentheses separated by commas)

WD - you cannot modify existing files and add new ones to existing folders, you can add new folders with files

AD - you cannot modify existing files, you can add new ones, you cannot create folders

Newly created folders and files are not bans

Размер: 32 B, дата: 24 May. 2021
Add to folder context menu

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

Remove from context menu

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

The context menu should be called while holding Shift

Author: admin