win32cred.CredRename

dict = CredRename(OldTargetName, NewTargetName , Type , Flags )

Changes the target name of stored credentials

Parameters

OldTargetName : PyUnicode

The target of credential to be renamed

NewTargetName : PyUnicode

New target for the specified credential

Type : int

Type of the credential to be renamed (CRED_TYPE_*)

Flags=0 : int

Reserved, use only 0

Comments

CRED_FLAGS_USERNAME_TARGET credentials can't be renamed since their TargetName and Username must be equal