win32file.RemoveUsersFromEncryptedFile

RemoveUsersFromEncryptedFile(FileName, pHashes)

Removes specified certificates from file - if certificate is not found, it is ignored

Parameters

FileName : string

File from which to remove users

pHashes : ((PySID,bytes,string),...)

Sequence representing an ENCRYPTION_CERTIFICATE_HASH_LIST structure, as returned by QueryUsersOnEncryptedFile