Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

$SecureCredentialProperty

Modified on July 26, 2024

the decrypted plain text value of a specified credentials property

Script usage:

$SecureCredentialProperty(credential, property)

Parameters:

NameDescription
credentialThe name of the credential to read.
propertyThe name of the credential property to get. If the property is encrypted, the credential itself must be configured to allow the value to be extracted, otherwise the function call will fail at run time.

Example:

# HDarsUser is a Username & Password Credentials with 'Allow encrypted properties...' checked

set $username = $SecureCredentialProperty(HDarsUser, Username);
set $password = $SecureCredentialProperty(HDarsUser, Password);

Log-Debug Executing sometool.exe -user $username -pass *****;
Exec sometool.exe -user $username -pass $password;