Enumerations/TOKEN_ACCESS.ps1
$TOKEN_ACCESS = psenum $Module TOKEN_ACCESS UInt32 @{ TOKEN_ASSIGN_PRIMARY = 0x00000001 TOKEN_DUPLICATE = 0x00000002 TOKEN_IMPERSONATE = 0x00000004 TOKEN_QUERY = 0x00000008 TOKEN_QUERY_SOURCE = 0x00000010 TOKEN_ADJUST_PRIVILEGES = 0x00000020 TOKEN_ADJUST_GROUPS = 0x00000040 TOKEN_ADJUST_DEFAULT = 0x00000080 TOKEN_ADJUST_SESSIONID = 0x00000100 DELETE = 0x00010000 READ_CONTROL = 0x00020000 WRITE_DAC = 0x00040000 WRITE_OWNER = 0x00080000 SYNCHRONIZE = 0x00100000 STANDARD_RIGHTS_REQUIRED = 0x000F0000 TOKEN_ALL_ACCESS = $TOKEN_ACCESS::STANDARD_RIGHTS_REQUIRED -bor $TOKEN_ACCESS::TOKEN_ASSIGN_PRIMARY -bor $TOKEN_ACCESS::TOKEN_DUPLICATE -bor $TOKEN_ACCESS::TOKEN_IMPERSONATE -bor $TOKEN_ACCESS::TOKEN_QUERY -bor $TOKEN_ACCESS::TOKEN_QUERY_SOURCE -bor $TOKEN_ACCESS::TOKEN_ADJUST_PRIVILEGES -bor $TOKEN_ACCESS::TOKEN_ADJUST_GROUPS -bor $TOKEN_ACCESS::TOKEN_ADJUST_DEFAULT } -Bitfield |