# RegistryRights listing as numbers

**URL:** <https://forums.powershell.org/t/registryrights-listing-as-numbers/4873>\
**Category:** PowerShell Help\
**Created:** [September 14, 2015, 1:44am UTC](https://forums.powershell.org/t/registryrights-listing-as-numbers/4873 "2015-09-14T01:44:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron-miller](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@aaron-miller](https://forums.powershell.org/u/aaron-miller)\
**Post date:** [September 14, 2015, 1:44am UTC](https://forums.powershell.org/t/registryrights-listing-as-numbers/4873/1 "2015-09-14T01:44:51Z")

</div>

Running this command (get-acl -Path “HKLM:\SYSTEM\test”).access | ? {$\_.registryrights} I get the below permissions.

On set of permissions being like ‘readkey’, but it’s below inherited permission being a number like -2147483648.

Is there a way to convert those numbers to their actual permission? Or a table somewhere that might state which means which?

RegistryRights : ReadKey  
AccessControlType : Allow  
IdentityReference : BUILTIN\Users  
IsInherited : True  
InheritanceFlags : None  
PropagationFlags : None

RegistryRights : -2147483648  
AccessControlType : Allow  
IdentityReference : BUILTIN\Users  
IsInherited : True  
InheritanceFlags : ContainerInherit  
PropagationFlags : InheritOnly

RegistryRights : FullControl  
AccessControlType : Allow  
IdentityReference : BUILTIN\Administrators  
IsInherited : True  
InheritanceFlags : None  
PropagationFlags : None

RegistryRights : 268435456  
AccessControlType : Allow  
IdentityReference : BUILTIN\Administrators  
IsInherited : True  
InheritanceFlags : ContainerInherit  
PropagationFlags : InheritOnly

RegistryRights : FullControl  
AccessControlType : Allow  
IdentityReference : NT AUTHORITY\SYSTEM  
IsInherited : True  
InheritanceFlags : None  
PropagationFlags : None

RegistryRights : 268435456  
AccessControlType : Allow  
IdentityReference : NT AUTHORITY\SYSTEM  
IsInherited : True  
InheritanceFlags : ContainerInherit  
PropagationFlags : InheritOnly

RegistryRights : 268435456  
AccessControlType : Allow  
IdentityReference : CREATOR OWNER  
IsInherited : True  
InheritanceFlags : ContainerInherit  
PropagationFlags : InheritOnly

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [September 14, 2015, 6:35am UTC](https://forums.powershell.org/t/registryrights-listing-as-numbers/4873/2 "2015-09-14T06:35:18Z")

</div>

There are some values in the Win32 API which don’t get exposed in the .NET Framework enumerated types for some reason. Depending on what type of object you’re looking at, these are generally named something like GENERIC\_READ or GENERIC\_WRITE, etc, and they’re mostly found in default ACLs rather than on something that’s been modified later in the GUI (or whatever).

When you come across those generic permissions in .NET, you see numbers.

---

<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:44pm UTC](https://forums.powershell.org/t/registryrights-listing-as-numbers/4873/3 "2024-05-16T20:44:47Z")

</div>

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


