win32security.SetTokenInformation
SetTokenInformation(TokenHandle, TokenInformationClass, TokenInformation)
Set a specified type of information in an access token
Parameters
TokenInformationClass | Type of input expected |
TokenOwner | PySID to be used as owner of created objects |
TokenPrimaryGroup | PySID |
TokenDefaultDacl | PyACL - Default permissions for created objects |
TokenSessionId | Int - Terminal services session id |
TokenVirtualizationEnabled | Boolean |
TokenVirtualizationAllowed | Boolean |
TokenIntegrityLevel | PySID_AND_ATTRIBUTES containing an integrity SID and SE_GROUP_INTEGRITY flag |
TokenMandatoryPolicy | Int. one of TOKEN_MANDATORY_POLICY_* values |