Set-ConnectionSettings cmdlet sets up your HostPilot PowerShell connection settings.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1

Account

(alias: AccountID)

string

R/O*

(R - for user)

Parameter, which specifies the account

Value of one of these parameters can be used as Account:

#ParameterDescription
1 AccountID Account identifier
2 UserName Account name
2 Credential PSCredential R Login/Password  
3 CredentialType string

R

The type of credentials
  • User
  • Administrator

Output parameters

No parameters

Examples of using Set-ConnectionSettings cmdlet 

Setting connection settings using UserName:

Set-ConnectionSettings -Account test030-e

Setting connection settings using AccountID :

Set-ConnectionSettings -Account 1234567

You can also omit Account parameter by default:

Set-ConnectionSettings test030-e

User's login to CP as Administrator:

$creds = Get-Credential

Set-ConnectionSettings -Credential $creds -CredentialType Administrator