win32file.RemoveUsersFromEncryptedFile

RemoveUsersFromEncryptedFile(FileName, pHashes)

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

Parameters

FileName : string/unicode

File from which to remove users

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

Sequence representing an ENCRYPTION_CERTIFICATE_HASH_LIST structure, as returned by QueryUsersOnEncryptedFile