Export (0) Print
Expand All

WbemPrivilegeEnum

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.

Constant/valueDescription
wbemPrivilegeCreateToken
1 (0x1)

Required to create a primary token.

wbemPrivilegePrimaryToken
2 (0x2)

Required to assign the primary token of a process.

wbemPrivilegeLockMemory
3 (0x3)

Required to lock physical pages in memory.

wbemPrivilegeIncreaseQuota
4 (0x4)

Required to increase the quota assigned to a process.

wbemPrivilegeMachineAccount
5 (0x5)

Required to create a machine account.

wbemPrivilegeTcb
6 (0x6)

Identifies its holder as part of the trusted computer base. Some trusted, protected subsystems are granted this privilege.

wbemPrivilegeSecurity
7 (0x7)

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
8 (0x8)

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
9 (0x9)

Required to load or unload a device driver.

wbemPrivilegeSystemProfile
10 (0xA)

Required to gather profiling information for the entire system.

wbemPrivilegeSystemtime
11 (0xB)

Required to modify the system time.

wbemPrivilegeProfileSingleProcess
12 (0xC)

Required to gather profiling information for a single process.

wbemPrivilegeIncreaseBasePriority
13 (0xD)

Required to increase the base priority of a process.

wbemPrivilegeCreatePagefile
14 (0xE)

Required to create a paging file.

wbemPrivilegeCreatePermanent
15 (0xF)

Required to create a permanent object.

wbemPrivilegeBackup
16 (0x10)

Required to perform backup operations.

wbemPrivilegeRestore
17 (0x11)

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
18 (0x12)

Required to shut down a local system.

wbemPrivilegeDebug
19 (0x13)

Required to debug a process.

wbemPrivilegeAudit
20 (0x14)

Required to generate audit-log entries.

wbemPrivilegeSystemEnvironment
21 (0x15)

Required to modify the nonvolatile RAM of systems that use this type of memory to store configuration information.

wbemPrivilegeChangeNotify
22 (0x16)

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
23 (0x17)

Required to shut down a system using a network request.

wbemPrivilegeUndock
24 (0x18)

Required to remove a computer from a docking station.

wbemPrivilegeSyncAgent
25 (0x19)

Required to synchronize directory service data.

wbemPrivilegeEnableDelegation
26 (0x1A)

Required to enable computer and user accounts to be trusted for delegation.

wbemPrivilegeManageVolume
27 (0x1B)

Required to perform volume maintenance tasks.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wbemdisp.h

IDL

Wbemdisp.idl

See also

Scripting API Constants
SWbemSecurity.Privileges
Privilege Constants

 

 

Show:
© 2014 Microsoft