Win32_ACE class
The Win32_ACE abstract WMI class specifies an access control entry (ACE). An ACE grants permission to execute a restricted operation, such as writing to a file or formatting a disk. An ACE that is specific to WMI allows logon, remote access, method execution, and writing to the WMI repository.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.
Inheritance
Windows Server 2003, Windows XP, Windows 2000, Windows XP, and Windows NT 4.0: Inherits from Win32_MethodParameterClass.
Syntax
class Win32_ACE : __ACE
{
uint32 AccessMask;
uint32 AceFlags;
uint32 AceType;
string GuidInheritedObjectType;
string GuidObjectType;
Win32_Trustee Trustee;
};
Members
The Win32_ACE class has these types of members:
Properties
The Win32_ACE class has these properties.
- AccessMask
-
- Data type: uint32
- Access type: Read/write
- Qualifiers: WritePrivileges(SeSecurityPrivilege, SeRestorePrivilege)
Bit flags that indicate rights granted or denied to the trustee. For more information, see the Remarks section of this topic.
- AceFlags
-
- Data type: uint32
- Access type: Read/write
- Qualifiers: WritePrivileges(SeSecurityPrivilege, SeRestorePrivilege)
Bit flags that specify inheritance of the ACE. The following table lists the relevant permission values for AceFlags.
The following table lists two possible values for AceFlags that pertain only to an ACE contained within a system access control list (SACL).
- AceType
-
- Data type: uint32
- Access type: Read/write
- Qualifiers: WritePrivileges(SeSecurityPrivilege, SeRestorePrivilege)
Type of ACE.
Value Meaning - 0
Access Allowed
- 1
Access Denied
- 2
Audit
- GuidInheritedObjectType
-
- Data type: string
- Access type: Read/write
- Qualifiers: WritePrivileges(SeSecurityPrivilege, SeRestorePrivilege)
Globally unique identifier (GUID) associated with the parent of the object to which these rights apply.
Windows Server 2003, Windows XP, Windows 2000, and Windows NT 4.0: This property is not available. - GuidObjectType
-
- Data type: string
- Access type: Read/write
- Qualifiers: WritePrivileges(SeSecurityPrivilege, SeRestorePrivilege)
GUID associated with the type of object to which these rights apply.
Windows Server 2003, Windows XP, Windows 2000, and Windows NT 4.0: This property is not available. - Trustee
-
- Data type: Win32_Trustee
- Access type: Read/write
- Qualifiers: WritePrivileges(SeSecurityPrivilege, SeRestorePrivilege)
Object representing the user account, group account, or logon session to which an ACE applies.
Remarks
The Win32_ACE class is derived from Win32_MethodParameterClass.
In the AccessMask property, the values of the individual rights are added together to form the value. For example, to grant the access permissions FILE_WRITE_ATTRIBUTES, FILE_WRITE_EA and FILE_WRITE_EA you add the associated values 256, 16, and 8. In this example, the value of AccessMask is 280.
Some values have different meanings depending on whether the AccessMask property is associated with a file or a directory. For example, when working with a file, the value 4 means FILE_APPEND_DATA or the right to add data to the file. The same value that is associated with a directory, means FILE_ADD_SUBDIRECTORY and grants the right to create a subdirectory.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
- Operating System Classes
- WMI Security Descriptor Objects
- Win32_SecurityDescriptor
- Maintaining WMI Security
- Changing Access Security on Securable Objects
Send comments about this topic to Microsoft
Build date: 11/19/2012