$PSCredential
- 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
$PSCredential
- Updated on 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
This is generated from the built in components of Otter 3.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
$PSCredential
Returns a PSCredential object that can be passed to PowerShell scripts.
Script usage:
$PSCredential(UserName, [Password])
Parameters:
Name | Description |
---|---|
☆ UserName | The user name of the PSCredential object, or a UsernamePassword credential. |
Password | The password of the PSCredential object. |
Example:
# convert user and password to a PSCredential object PSCall MyPowerShellScript ( Credentials: $PSCredential(user, password) );
Was this article helpful?