Previous Topic: xo-convertto-securefileNext Topic: Add-Credential - Add Credentials to a Host


xo-credential - Convert a String to a PSCredential Object

The xo-credential command lets you convert a username and password string to a secured credential object, for use within other commands that take PSCredential objects as command arguments.

Syntax

xo-credential <username> <password>

Example

xo-credential johnsmith mypword2