---
title: "$SecureCredentialProperty"
---
the decrypted plain text value of a specified credentials property
$SecureCredentialProperty(credential, property)
Name | Description |
---|---|
☆ credential | The name of the credential to read. |
☆ property | The 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. |
# 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;