Previous Topic: Add-Credential - Add Credentials to a HostNext Topic: Set-ScenarioUserCredential - Set the User Credentials Property of a Scenario


Set-HostUserCredential - Set the User Credentials Property for a Host

The Set-HostUserCredential command lets you set the user credentials property of a host.

Syntax
Set-HostUserCredential [-Name] <String> [-Host] <String> [-Credentials] <PSCredential> 
Parameters
Name

The scenario name.

Host

The host name or IP address of the host for which you want to set the credentials.

Credentials

The PowerShell credential object of the specific host. You can set this credential object using xo-credential cmdlet.

Example:

$c = xo-credential "administrator" "Password";
Set-HostUserCredential -name "scenario 1" -host 9.182.102.229 -credential $c
Output:

Property updated successfully.