Export (0) Print
Expand All
Expand Minimize

Win32_PrivilegesStatus class

The Win32_PrivilegesStatusWMI class reports information about privileges required to complete an operation. It may be returned when an operation failed or when a partially populated instance has been returned.

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

[LOCALE(1033), UUID("{BE46D060-7A7C-11d2-BC85-00104B2CF71C}")]class Win32_PrivilegesStatus : __ExtendedStatus
{
  string PrivilegesNotHeld[];
  string PrivilegesRequired[];
};

Members

The Win32_PrivilegesStatus class has these types of members:

Properties

The Win32_PrivilegesStatus class has these properties.

PrivilegesNotHeld
Data type: string array
Access type: Read-only

Listing required access privileges missing to complete an operation. The types of access privileges can be found under the Windows Privileges.

Example: "SE_SHUTDOWN_NAME"

PrivilegesRequired
Data type: string array
Access type: Read-only

Listing of all of the privileges required to perform an operation. This includes values from the PrivilegesNotHeld property.

Example: "SE_SHUTDOWN_NAME"

Remarks

The Win32_PrivilegesStatus class is derived from __ExtendedStatus.

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 XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

 

 

Show:
© 2014 Microsoft