Export (0) Print
Expand All

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.

Inheritance

Windows Server 2003:  Inherits from the Win32_MethodParameterClass.

Syntax

class Win32_Trustee : __Trustee
{
  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: WritePrivileges (SeSecurityPrivilege, SeRestorePrivilege)

Domain to which a trustee belongs.

Name
Data type: string
Access type: Read/write
Qualifiers: 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: WritePrivileges (SeSecurityPrivilege, SeRestorePrivilege)

SID that uniquely identifies a user or group.

SidLength
Data type: uint32
Access type: Read/write
Qualifiers: WritePrivileges (SeSecurityPrivilege, SeRestorePrivilege)

Length of a SID—in bytes.

SIDString
Data type: string
Access type: Read/write
Qualifiers: 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"

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 2003

Namespace

\root\CIMV2

MOF

Secrcw32.mof

DLL

CIMWin32.dll

See also

Operating System Classes
WMI Security Descriptor Objects
Win32_SecurityDescriptor
Maintaining WMI Security

 

 

Show:
© 2014 Microsoft