Categories:
  🠪  General

Email
  🠪  Servers
  🠪  Testing
  🠪  Tips

Hardware
  🠪  3D Printing
  🠪  Apple
  🠪  Batteries
  🠪  Drives
  🠪  Edgerouter
  🠪  Electronics
  🠪  Laptop
  🠪  Modems
  🠪  Phone
  🠪  Printers
  🠪  Raspberry Pi
  🠪  Tablets
  🠪  Testing
  🠪  Virtualization

hidden
  🠪  General

Links
  🠪  Interesting
  🠪  Media

Network
  🠪  Data
  🠪  Testing
  🠪  VPN

Scripts
  🠪  Batch
  🠪  Linux
  🠪  Powershell

Servers
  🠪  Databases
  🠪  Misc
  🠪  Website

Software
  🠪  Other

Utilities
  🠪  Backup
  🠪  Fix Issues
  🠪  Recovery

Video
  🠪  Editing

Websites
  🠪  HTML
  🠪  Testing

Windows
  🠪  Adjustments
  🠪  Issues
  🠪  Remote Desktop
  🠪  Security
  🠪  Slow
  🠪  Software
  🠪  Startup

Submit Entry
Airin's Notes

Category: Scripts 🠪 Batch
ICACLS - Windows File Permissions
February 11, 2024

ICACLS
/t - Recursive
/C - Continue after errors are found

Add user as Owner of a folder
icacls.exe d:\test /setowner domain\username /t /C


Add user/group with Full permissions to a folder:
icacls "C:\Folder" /grant Users:(OI)(CI)F /t /C



Another thing to try (taken from askvg link below):
takeown /f foldername /r /d y
icacls foldername /grant administrators:F /t
icacls "C:\FolderName" /grant Administrators:(OI)(CI)F /t /C

Regedit to add an option to File Explorer:
https://www.askvg.com/add-take-ownership-option-in-file-folder-context-menu-in-windows-vista/


Keywords: Windows, Security, NTFS, File, Permissions, ACL





This site is meant to be used as a reference for myself, although others may find it useful. I use it to keep track of certain fixes, software, and other solutions which I may need while assisting customers. The page layout is pure HTML/CSS and is kept simple to optimize loading time and fast results.

Return to Airin's Computers