win32security.SetTokenInformation

SetTokenInformation(TokenHandle, TokenInformationClass, TokenInformation)

Set a specified type of information in an access token

Parameters

TokenHandle : PyHANDLE

Handle to an access token to be modified

TokenInformationClass : int

Specifies a value from the TOKEN_INFORMATION_CLASS enumerated type identifying the type of information to be modfied

TokenInformation : object

Type is dependent on TokenInformationClass

TokenInformationClass Type of input expected


TokenOwnerPySID to be used as owner of created objects
TokenPrimaryGroupPySID
TokenDefaultDaclPyACL - Default permissions for created objects
TokenSessionIdInt - Terminal services session id
TokenVirtualizationEnabledBoolean
TokenVirtualizationAllowedBoolean
TokenIntegrityLevelPySID_AND_ATTRIBUTES containing an integrity SID and SE_GROUP_INTEGRITY flag
TokenMandatoryPolicyInt. one of TOKEN_MANDATORY_POLICY_* values