--- title: "$PSCredential" ---
This is generated from the built in components of Otter 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your Otter instance to see exactly what operations are available.

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)
);