Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsCredentialsMBS module.
WindowsCredentialsMBS.Delete(TargetName as String, Type as Integer = 1, Flags as Integer = 0) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Windows | MBS Win Plugin | 26.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
The credential set used is the one associated with the logon session of the current token. The token must not have the user's SID disabled.
TargetName: the name of the credential to delete.
Type: Type of the credential to delete.
If the value of the type parameter is DomainExtended, this function can delete a credential that specifies a user name when there are multiple credentials for the same target. The value of the TargetName parameter must specify the user name as Target|UserName.
Returns true on success or false on failure. LastError property is set.
WindowsCredentialsMBS.FindBestCredential(TargetName as String) as WindowsCredentialMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Windows | MBS Win Plugin | 26.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
TargetName: the name of the target resource for which to find credentials.
Type: The type of credentials to search for. Currently, this function supports only TypeGeneric.
Returns credential if found or nil in case of an error.
WindowsCredentialsMBS.GetSessionTypes as Integer()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Windows | MBS Win Plugin | 26.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
A separate maximum persistence is returned for each credential type.
WindowsCredentialsMBS.List(Filter as String = "", Flags as Integer = 0) as WindowsCredentialMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Windows | MBS Win Plugin | 26.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
The credential set used is the one associated with the logon session of the current token. The token must not have the user's SID disabled.
Filter: The filter for the returned credentials. Only credentials with a TargetName matching the filter will be returned. The filter specifies a name prefix followed by an asterisk. For instance, the filter "FRED*" will return all credentials with a TargetName beginning with the string "FRED". If "" is specified, all credentials will be returned.
Flags: The value of this parameter can be zero or FlagsPreserveCredentialBlob.
Returns the credentials or nil in case of an error.
WindowsCredentialsMBS.Read(TargetName as String, Type as Integer = 1, Flags as Integer = 0) as WindowsCredentialMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Windows | MBS Win Plugin | 26.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
The credential set used is the one associated with the logon session of the current token. The token must not have the user's SID disabled.
TargetName: the name of the credential to read.
Type: The type of item to read. Default is WindowsCredentialMBS.TypeGeneric value.
Flags: Currently reserved and must be zero.
Returns a credential object or nil in case of an error. See LastError property and error constants.
If the value of the Type member of the WindowsCredentialMBS is TypeDomainExtended, a namespace must be specified in the target name. This function can return only one credential of the specified type.
WindowsCredentialsMBS.Write(Credential as WindowsCredentialMBS, Flags as Integer = 0) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Windows | MBS Win Plugin | 26.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
The new credential is associated with the logon session of the current token. The token must not have the user's security identifier (SID) disabled.
Credential: The Credential to be written.
Flags: Flags that control the function's operation. e.g. FlagsPreserveCredentialBlob to preserved existing credential.
Returns true on success or false on failure.
The items on this page are in the following plugins: MBS Win Plugin.