Set File/Folder Permissions

SOTI MobiControl
Windows

On Windows devices, managing file and folder permissions is crucial to safeguarding sensitive data and ensuring that only authorized users can access specific files or directories. The Set File/Folder Permissions script enables IT administrators to remotely configure and modify file or folder permissions on Windows devices. This allows for precise control over who can view, edit, or manage particular files, helping to maintain data security and compliance across the organization without the need for manual intervention on each device.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

Restrict user access to a file or folder

1 icacls <path> /deny <username>:F

Grant user access to a file or folder

1 icacls <path> /grant <username>:F

Remove user access to a file or folder

1 icacls <path> /remove:<action> <username>

Display permissions on a folder or file

1 icacls <path>

Reset a file permission

1 icacls <path> /reset

Was this helpful?

Need more help?
Ask Community