Freigeben über


Win32_Trustee class

The Win32_Trustee abstract WMI class specifies a trustee that can be a name or a security identifier (SID) byte array.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

[abstract, UUID("{8502C589-5FBB-11D2-AAC1-006008C78BC7}"), AMENDMENT]
class Win32_Trustee : __Trustee
{
  uint64 TIME_CREATED;
  string Domain;
  string Name;
  uint8  SID[];
  uint32 SidLength;
  string SIDString;
};

Members

The Win32_Trustee class has these types of members:

Properties

The Win32_Trustee class has these properties.

Domain

Data type: string

Access type: Read/write

Qualifiers: Override (Domain), WritePrivileges ("SeSecurityPrivilege", "SeRestorePrivilege")

Domain to which a trustee belongs.

Name

Data type: string

Access type: Read/write

Qualifiers: Override (Name), WritePrivileges ("SeSecurityPrivilege", "SeRestorePrivilege")

A trustee can be a user account, group account, or logon session.

SID

Data type: uint8 array

Access type: Read/write

Qualifiers: Override (SID), WritePrivileges ("SeSecurityPrivilege", "SeRestorePrivilege")

SID that uniquely identifies a user or group.

SidLength

Data type: uint32

Access type: Read/write

Qualifiers: Override (SidLength), WritePrivileges ("SeSecurityPrivilege", "SeRestorePrivilege")

Length of a SID in bytes.

SIDString

Data type: string

Access type: Read/write

Qualifiers: Override (SidString), WritePrivileges ("SeSecurityPrivilege", "SeRestorePrivilege")

SID of a trustee in string format. The format for a string value is the following:

  1. The "S" character identifies the series of digits as a SID.
  2. The revision level.
  3. Identifier authority value.
  4. One or more subauthority values.

Example: "S-1-1-0"

TIME_CREATED

Data type: uint64

Access type: Read-only

Time in the CIM_DATETIME format when the security descriptor was created.

This property is inherited from __Trustee.

Remarks

The Win32_Trustee class is derived from the Win32_MethodParameterClass. For more information about how to provide SID data to an instance of this class, see Changing Access Security on Securable Objects.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
Secrcw32.mof
DLL
CIMWin32.dll

See also

__Trustee

Operating System Classes

WMI Security Descriptor Objects

Win32_SecurityDescriptor

Maintaining WMI Security