VMware PowerCLI for Mirage

Connect-MirageServer

Synopsis

This cmdlet configures a connection to the Mirage API server.

Syntax

Connect-MirageServer [-Server] <String> [[-Username] <String>] [[-Password] <String>] [-Credential <PSCredential>] [-Port <Int32>] [-TrustUnknownCertificate] [<CommonParameters>]

Related Commands

Disconnect-MirageServer

Detailed Description

This cmdlet configures a connection to the Mirage API server.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ServerStringSpecifies the address of the Mirage server.truetrue (ByValue, ByPropertyName)
UsernameStringThe user name for the Mirage server. Use either the user name and password or the credentials.falsefalse
PasswordStringThe password for the Mirage server. Use either the user name and password or the credentials.falsefalse
CredentialPSCredentialThe credentials for the Mirage server. Use either the user name and password or the credentials.falsetrue (ByValue, ByPropertyName)
PortInt32Specify the port number for the Mirage server. The default port is 7443.falsetrue (ByPropertyName)
TrustUnknownCertificateSwitchParameterTrust unknown certificate. True or false? The default value is false.falsetrue (ByPropertyName)

Return Type

MirageServer

Notes

Since VMware Mirage 5.1.0.

Examples

-------------- Example 1 --------------

Connect-MirageServer -Server $myServer -Username $user -Password $password -Port $port

Connects to the Mirage server.





The connected Mirage server.

-------------- Example 2 --------------

Connect-MirageServer -Server $myServer -Credential $credential -Port $port

Connects to the Mirage server.





The connected Mirage server.


Copyright © VMware, Inc. All rights reserved.