Access Token Manipulation
Windows access tokens record user IDs, groups, privileges, and other information. Before investigating token manipulation, check which privileges are effective in the current process.
SeAssignPrimaryTokenPrivilege: DISABLEDSeIncreaseQuotaPrivilege: DISABLEDSeChangeNotifyPrivilege: SE_PRIVILEGE_ENABLED_BY_DEFAULT, SE_PRIVILEGE_ENABLEDSeImpersonatePrivilege: SE_PRIVILEGE_ENABLED_BY_DEFAULT, SE_PRIVILEGE_ENABLEDSeCreateGlobalPrivilege: SE_PRIVILEGE_ENABLED_BY_DEFAULT, SE_PRIVILEGE_ENABLEDSeIncreaseWorkingSetPrivilege: DISABLEDThe output above is an example of whoami /priv. Distinguish privileges shown as DISABLED from those that are enabled.
For the underlying mechanism, see Windows Tokens. For examples of manipulation, see Abusing Tokens.

