# SetACL

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/SetACL
> Markdown URL: https://mediated.wiki/source/SetACL.md
> Source: https://en.wikipedia.org/wiki/SetACL
> Source revision: 1164929770
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|Security software}}
{{Use dmy dates|date=November 2022}}
{{Infobox software
| name = SetACL
| logo = 
| screenshot = 
| caption = 
| developer = Helge Klein
| latest_release_version = 3.0.6
| latest_release_date =  7 September 2012
| operating_system = [Microsoft Windows](/source/Microsoft_Windows)
| genre = [Utility software](/source/Utility_software) 
| license = [Freeware](/source/Freeware)
| website = [http://helgeklein.com/setacl/ helgeklein.com/setacl]
}}

'''SetACL''' is a [freeware](/source/freeware) [utility](/source/Utility_software) for manipulating [security descriptor](/source/security_descriptor)s on [Microsoft Windows](/source/Microsoft_Windows).<ref>[http://helgeklein.com/setacl/documentation/ SetACL Documentation]</ref> It used to be available under the [GNU Lesser General Public License](/source/GNU_Lesser_General_Public_License) (LGPL) as a [command-line utility](/source/Command-line_interface) and as an [ActiveX](/source/ActiveX) component, but changed to a [freeware](/source/freeware) license in version 3.0.0.0.

==Features==
This list of features is taken from the product's web page.<ref>[http://helgeklein.com/setacl/ SetACL Windows permission management]</ref>
* Supports the following object types on [Windows 2000](/source/Windows_2000) and later
** [NTFS](/source/NTFS) [files](/source/Computer_file) and [directories](/source/Directory_(file_systems))
** [registry keys](/source/Windows_Registry)
** [printers](/source/Computer_printer)
** [services](/source/Windows_service)
** [network shares](/source/Shared_resource)
** [WMI objects](/source/Windows_Management_Instrumentation) 
* Manage permissions on local or remote systems in [domains](/source/Windows_Server_domain) or [workgroups](/source/Workgroup_(Computer_networking)).
* Set multiple permissions for multiple users or groups in a single command.
* Control how permissions are inherited.
* List, backup and restore permissions.
* All operations work on a single object or recursively on a directory or registry tree.
* Set the owner to any user or group.
* Unicode support.
* Remove, replace or copy a user or group from an [ACL](/source/Access_control_list).
* Fast performance due to time-consuming steps such as recursing a large file system are performed only once.
* Filter out object names not to be processed.

==Usage==
To set 'change' permissions on the directory 'C:\angela' for user 'brian' in domain 'dom1':
{{sxhl|2=dosbatch|
 SetACL.exe -on "C:\angela" -ot file -actn ace
            -ace "n:dom1\brian;p:change"
}}
Remove write and change permission sets from Desktop, replace with 'read and execute' permissions:
{{sxhl|2=dosbatch|
 SetACL.exe -on "\\mycomputer\C$\Documents and Settings\username\Desktop" -ot file 
            -actn ace -ace "n:mycomputer\username;p:write,change;m:revoke"
            -ace "n:mycomputer\username;p:read_ex"
}}
An example of its use from [AutoIt](/source/AutoIt) can be found [http://www.autoitscript.com/forum/index.php?showtopic=74626 here].

==Short history==
* March 2001 SetACL program 0.x development begins
* December 2002 SetACL program 2.x development begins
* April 2003 2.0 beta 1 released
* July 2003 2.0 final released
* September 2003 2.0.1.0 released – Remove, replace or copy all Access Control Entries (ACEs) belonging to users or groups of a specified [domain](/source/Windows_Server_domain).
* January 2004 2.0.2 released – [ActiveX](/source/ActiveX) support. can be used from any language that supports [COM](/source/Component_Object_Model) including [AutoIt](/source/AutoIt), [Visual Basic](/source/Visual_Basic), [Perl](/source/Perl), [VBScript](/source/VBScript).
* May 2008 2.0.3 released – 64-bit support
* August 2010 2.1 released – Improved permission listing

==References==
{{reflist}}

Category:Operating system security
Category:Windows commands

---
Adapted from the Wikipedia article [SetACL](https://en.wikipedia.org/wiki/SetACL) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/SetACL?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
