# How to determine Aceflag value

**URL:** <https://forums.powershell.org/t/how-to-determine-aceflag-value/16789>\
**Category:** PowerShell Help\
**Created:** [June 10, 2021, 3:44pm UTC](https://forums.powershell.org/t/how-to-determine-aceflag-value/16789 "2021-06-10T15:44:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dabzz](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/dabzz/32/1378_2.png) [@dabzz](https://forums.powershell.org/u/dabzz)\
**Post date:** [June 10, 2021, 3:44pm UTC](https://forums.powershell.org/t/how-to-determine-aceflag-value/16789/1 "2021-06-10T15:44:24Z")

</div>

I’m looking over the code at [Exporting Share Info and Permissions with PowerShell and CSV files | Windows Stuff That Your Dreams Dreamed Of](https://winception.wordpress.com/2011/02/19/exporting-share-info-and-permissions-with-powershell-and-csv-files/) and I’m not sure what is represented by AceFlags. I get an AceFlag value of 3 when I run the script on the computer but i can’t find what the values of the Aceflags correspond to. Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [June 10, 2021, 6:11pm UTC](https://forums.powershell.org/t/how-to-determine-aceflag-value/16789/2 "2021-06-10T18:11:08Z")

</div>

It sounds like you have the solution, but now you are looking for the associated problem. The scripts are about 10 years old and derive from even older scripts. Maybe there is another/younger/better solution for what you want to achieve. . 😉

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [June 10, 2021, 9:47pm UTC](https://forums.powershell.org/t/how-to-determine-aceflag-value/16789/3 "2021-06-10T21:47:11Z")

</div>

[This is the documentation](https://docs.microsoft.com/en-us/previous-versions/windows/desktop/secrcw32prov/win32-securitydescriptor) for the `Win32_SecurityDescriptor` class which breaks down the flag values:

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:24pm UTC](https://forums.powershell.org/t/how-to-determine-aceflag-value/16789/4 "2024-05-16T20:24:15Z")

</div>

Closed on May 16, 2024, 8:24pm UTC


