$PSCredential
  • 14 May 2021
  • 1 Minute to read
  • Dark
    Light
  • PDF

$PSCredential

  • Dark
    Light
  • PDF

This is generated from the built in components of BuildMaster 7.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:

NameDescription
UserNameThe user name of the PSCredential object, or a UsernamePassword credential.
PasswordThe password of the PSCredential object.

Example:

# convert user and password to a PSCredential object
PSCall MyPowerShellScript
(
    Credentials: $PSCredential(user, password)
);

Was this article helpful?

What's Next