Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
WMI Classes
Win32 Classes
 Win32_Trustee Class

  Switch on low bandwidth view
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

class Win32_Trustee : __Trustee
{
  string Domain;
  string Name;
  uint8  SID[];
  uint32 SidLength;
  string SIDString;
};

Inheritance

Windows Server 2003, Windows XP, Windows 2000, Windows XP, and Windows NT 4.0:  Inherits from the Win32_MethodParameterClass.

Methods

The Win32_Trustee class does not define any methods.

Properties

The Win32_Trustee class defines the following 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.

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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
MOFSecrcw32.mof
DLLCimwin32.dll
Namespace\root\cimv2

See Also

Operating System Classes
WMI Security Descriptor Objects
Win32_SecurityDescriptor
Maintaining WMI Security

Send comments about this topic to Microsoft

Build date: 6/15/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker