win32cred.CredWriteDomainCredentials
CredWriteDomainCredentials(TargetInfo, Credential, Flags)
Creates or updates credential for a domain or server
Parameters
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