Syntax
Connect-OMServer [-Server] <String[]> [-User <String>] [-Password <SecureString>] [-AuthSource <String>] [-Port <Int32>] [-NotDefault] [-Force] [-SaveCredentials] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet establishes a connection to the vRealize Operations Manager server specified by the -Server parameter.Parameters
Return Type
OMServerNotes
Examples
-------------- Example 1 --------------
Connect-OMServer -Server 'server_name' -User 'user_name' -Password 'user_password'
Connects to a vRealize Operations Manager server by using the User and Password parameters.
-------------- Example 2 --------------
Connect-OMServer -Server 'server_name' -AuthSource 'vCenterServer_name_in_vROps' -User 'vCenterServer_admin' -Password 'user_password'
Connects to a vRealize Operations Manager server as a vCenter Server user, imported from the monitored vCenter Server system.
-------------- Example 3 --------------
$srv = Connect-OMServer 'server_name' -User 'admin' -Password 'user_password' Connect-OMServer 'server_name' -Session $srv.SessionId
Connects to a vRealize Operations Manager server with an existing session.
-------------- Example 4 --------------
$secpasswd = ConvertTo-SecureString 'PlainTextPassword' -AsPlainText -Force $mycreds = New-Object System.Management.Automation.PSCredential ('user_name', $secpasswd) Connect-OMServer 'server_name' -Credential $mycreds
Connects to a vRealize Operations server by using a credentials object.