Privileges determine the type of system operations that a user
account can perform. An administrator assigns privileges to user and
group accounts. Each user's privileges include those granted to the user
and to the groups to which the user belongs.
The functions that get and adjust the privileges in an access token use the locally unique identifier (LUID) type to identify privileges. Use the
LookupPrivilegeValue function to determine the LUID on the local system that corresponds to a privilege constant. Use the
LookupPrivilegeName function to convert a LUID to its corresponding string constant.
The operating system represents a privilege by using the string that
follows "User Right" in the Description column of the following table.
The operating system displays the user right strings in the Policy column of the User Rights Assignment node of the Local Security Settings Microsoft Management Console (MMC) snap-in.
Constant/value | Description |
---|---|
| Required to assign the primary token of a process. User Right: Replace a process-level token. |
| Required to generate audit-log entries. Give this privilege to secure servers. User Right: Generate security audits. |
| Required to perform backup operations. This privilege causes the
User Right: Back up files and directories. |
| Required to receive notifications of changes to files or directories. User Right: Bypass traverse checking. |
| Required to create named file mapping objects in the global namespace User Right: Create global objects. |
| Required to create a paging file. User Right: Create a pagefile. |
| Required to create a permanent object. User Right: Create permanent shared objects. |
| Required to create a symbolic link. User Right: Create symbolic links. |
| Required to create a primary token. User Right: Create a token object. You cannot add this privilege to a user account with the "Create a Windows Server 2003 and Windows XP with SP1 and earlier: Windows APIs can add this privilege to an owned process. |
| Required to debug and adjust the memory of a process owned by another account. User Right: Debug programs. |
| Required to mark user and computer accounts as trusted for delegation. User Right: Enable computer and user accounts to be trusted for delegation. |
| Required to impersonate. User Right: Impersonate a client after authentication. |
| Required to increase the base priority of a process. User Right: Increase scheduling priority. |
| Required to increase the quota assigned to a process. User Right: Adjust memory quotas for a process. |
| Required to allocate more memory for applications that run in the context of users. User Right: Increase a process working set. |
| Required to load or unload a device driver. User Right: Load and unload device drivers. |
| Required to lock physical pages in memory. User Right: Lock pages in memory. |
| Required to create a computer account. User Right: Add workstations to domain. |
| Required to enable volume management privileges. User Right: Manage the files on a volume. |
| Required to gather profiling information for a single process. User Right: Profile single process. |
| Required to modify the mandatory integrity level of an object. User Right: Modify an object label. |
| Required to shut down a system using a network request. User Right: Force shutdown from a remote system. |
| Required to perform restore operations. This privilege causes the
User Right: Restore files and directories. |
| Required to perform a number of security-related functions, such as User Right: Manage auditing and security log. |
| Required to shut down a local system. User Right: Shut down the system. |
| Required for a domain controller to use the Lightweight Directory Access Protocol User Right: Synchronize directory service data. |
| Required to modify the nonvolatile RAM of systems that use this type of memory to store configuration information. User Right: Modify firmware environment values. |
| Required to gather profiling information for the entire system. User Right: Profile system performance. |
| Required to modify the system time. User Right: Change the system time. |
| Required to take ownership of an object without being granted User Right: Take ownership of files or other objects. |
| This privilege identifies its holder as part of the trusted computer User Right: Act as part of the operating system. |
| Required to adjust the time zone associated with the computer's internal clock. User Right: Change the time zone. |
| Required to access Credential Manager as a trusted caller. User Right: Access Credential Manager as a trusted caller. |
| Required to undock a laptop. User Right: Remove computer from docking station. |
| Required to read unsolicited input from a terminal device. User Right: Not applicable. |
Privilege constants are defined as strings in Winnt.h. For example, the SE_AUDIT_NAME constant is defined as "SeAuditPrivilege".
Minimum supported client | Windows XP [desktop apps only] |
---|---|
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header |
|