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.

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