Syntax
Connect-SrmServer [-User <String>] [-Password <SecureString>] [-Port <Int32>] [-Protocol <String>] [-Credential <PSCredential>] [-RemoteCredential <PSCredential>] [-RemoteUser <String>] [-RemotePassword <SecureString>] [-NotDefault] [-IgnoreCertificateErrors] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet establishes a connection to an SRM server. To access the SRM API, use the ExtensionData property of the output of this command.Parameters
Return Type
SrmServerNotes
Examples
-------------- Example 1 --------------
Connect-VIServer "myVCServerIp" -User "myUser" -Password "myPassword" Connect-SrmServer
Connects to a vCenter Server system, that has an SRM server associated with it. Then, invokes the cmdlet without specifying any parameters to establish a connection to the SRM server registered with the connected vCenter Server system. If you have previously connected to other vCenter Server systems configured with SRM server support, this cmdlet invocation will establish a connection to their corresponding SRM servers as well.
-------------- Example 2 --------------
Connect-SrmServer -SrmServerAddress 192.0.2.1 -User "myUser" -Password "myPassword"
Connects to an SRM server with an IP address of 192.0.2.1 by passing a valid user name and password.
-------------- Example 3 --------------
Connect-VIServer "myVCServerIp" -User "myUser" -Password "myPassword" Connect-SrmServer -RemoteCredential $myRemoteCredential
Connects to a vCenter Server system associated with an SRM server. Then, establishes a connection to that SRM server by passing valid credentials for connection to the remote SRM server.
-------------- Example 4 --------------
Connect-VIServer "myVCServerIp" -User "myUser" -Password "myPassword" Connect-SrmServer -NotDefault -IgnoreCertificateErrors
Connects to a vCenter Server system, that has an associated SRM server. Then, establishes an SRM server connection by ignoring any errors related to bad server certificates. The newly created SRM server connection is not added to the default list of SRM server connections.