WbemPrivilegeEnum Enumeration

The WbemPrivilegeEnum constants define privileges. These constants are used with SWbemSecurity to grant the privileges required for some operations. For more information, see Privilege Constants.

The WMI scripting type library, wbemdisp.tlb defines these constants. Microsoft Visual Basic applications can access this library; script languages must use the value of the constant directly, unless they use Windows Script Host (WSH) XML file format. For more information, see Using the WMI Scripting Type Library.

Syntax

typedef enum WbemPrivilegeEnum {
  wbemPrivilegeCreateToken,
  wbemPrivilegePrimaryToken,
  wbemPrivilegeLockMemory,
  wbemPrivilegeIncreaseQuota,
  wbemPrivilegeMachineAccount,
  wbemPrivilegeTcb,
  wbemPrivilegeSecurity,
  wbemPrivilegeTakeOwnership,
  wbemPrivilegeLoadDriver,
  wbemPrivilegeSystemProfile,
  wbemPrivilegeSystemtime,
  wbemPrivilegeProfileSingleProcess,
  wbemPrivilegeIncreaseBasePriority,
  wbemPrivilegeCreatePagefile,
  wbemPrivilegeCreatePermanent,
  wbemPrivilegeBackup,
  wbemPrivilegeRestore,
  wbemPrivilegeShutdown,
  wbemPrivilegeDebug,
  wbemPrivilegeAudit,
  wbemPrivilegeSystemEnvironment,
  wbemPrivilegeChangeNotify,
  wbemPrivilegeRemoteShutdown,
  wbemPrivilegeUndock,
  wbemPrivilegeSyncAgent,
  wbemPrivilegeEnableDelegation,
  wbemPrivilegeManageVolume
} ;

Constants

wbemPrivilegeCreateToken Required to create a primary token.
wbemPrivilegePrimaryToken Required to assign the primary token of a process.
wbemPrivilegeLockMemory Required to lock physical pages in memory.
wbemPrivilegeIncreaseQuota Required to increase the quota assigned to a process.
wbemPrivilegeMachineAccount Required to create a machine account.
wbemPrivilegeTcb Identifies its holder as part of the trusted computer base. Some trusted, protected subsystems are granted this privilege.
wbemPrivilegeSecurity Required to perform a number of security-related functions, such as controlling and viewing audit messages. This privilege identifies its holder as a security operator.
wbemPrivilegeTakeOwnership Required to take ownership of an object without being granted discretionary access. This privilege allows the owner value to be set only to those values that the holder may legitimately assign as the owner of an object.
wbemPrivilegeLoadDriver Required to load or unload a device driver.
wbemPrivilegeSystemProfile Required to gather profiling information for the entire system.
wbemPrivilegeSystemtime Required to modify the system time.
wbemPrivilegeProfileSingleProcess Required to gather profiling information for a single process.
wbemPrivilegeIncreaseBasePriority Required to increase the base priority of a process.
wbemPrivilegeCreatePagefile Required to create a paging file.
wbemPrivilegeCreatePermanent Required to create a permanent object.
wbemPrivilegeBackup Required to perform backup operations.
wbemPrivilegeRestore Required to perform restore operations. This privilege enables you to set any valid user or group security identifier (SID) as the owner of an object.
wbemPrivilegeShutdown Required to shut down a local system.
wbemPrivilegeDebug Required to debug a process.
wbemPrivilegeAudit Required to generate audit-log entries.
wbemPrivilegeSystemEnvironment Required to modify the nonvolatile RAM of systems that use this type of memory to store configuration information.
wbemPrivilegeChangeNotify Required to receive notifications of changes to files or directories. This privilege also causes the system to skip all traversal access checks. It is enabled by default for all users.
wbemPrivilegeRemoteShutdown Required to shut down a system using a network request.
wbemPrivilegeUndock Required to remove a computer from a docking station.
wbemPrivilegeSyncAgent Required to synchronize directory service data.
wbemPrivilegeEnableDelegation Required to enable computer and user accounts to be trusted for delegation.
wbemPrivilegeManageVolume Required to perform volume maintenance tasks.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header wbemdisp.h

See Also

Privilege Constants

SWbemSecurity.Privileges

Scripting API Constants