no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | windows:powershell_commands:set_acl [2021/11/17 14:40] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Set folder ACL with Powershell ====== | ||
+ | <code powershell> | ||
+ | $acl = get-acl c:\shared | ||
+ | $newacl = new-object system.security.accesscontrol.filesystemaccessrule(" | ||
+ | $acl.SetAccessRule($newacl) | ||
+ | $acl | set-acl c:\shared | ||
+ | get-acl c:\shared | fl | ||
+ | </ |