win32cred.CredWriteDomainCredentials
CredWriteDomainCredentials(TargetInfo, Credential, Flags)
Creates or updates credential for a domain or server
Parameters
TargetInfo : dict
PyCREDENTIAL_TARGET_INFORMATION identifying the target
domain. At least one of the Names is requiredCredential : dict
PyCREDENTIAL dict containing the credentials to be storedFlags=0 : int
CRED_PRESERVE_CREDENTIAL_BLOB is only defined flag
Comments
When updating a credential, to preserve a previously stored password use None or ''
for CredentialBlob member of Credential and pass CRED_PRESERVE_CREDENTIAL_BLOB in Flags