Connect-VBRServer
Short Description
Connects to a Veeam backup server.
Syntax
This cmdlet provides the following parameter sets:
-
AllParameterSets (Default)Connect-VBRServer [-Server <String>] [-Port <Int32>] [-Timeout <Int32>] [-ForceAcceptTlsCertificate] [<CommonParameters>]
-
ServerConnect-VBRServer [-Server <String>] [-Port <Int32>] -User <String> -Password <String> [-Timeout <Int32>]
[-ForceAcceptTlsCertificate] [<CommonParameters>]
-
CredentialsConnect-VBRServer [-Server <String>] [-Port <Int32>] -Credential <PSCredential> [-Timeout <Int32>]
[-ForceAcceptTlsCertificate] [<CommonParameters>]
-
InheritConnectionConnect-VBRServer [-Server <String>] [-Port <Int32>] [-Timeout <Int32>] [-ForceAcceptTlsCertificate] [<CommonParameters>]
Detailed Description
This cmdlet creates connection with a local or remote Veeam backup server. The connection starts a Veeam PowerShell session during which you can perform all operations available with Veeam PowerShell.
If you do not specify the server, the cmdlet connects to the local Veeam backup server.
If you open PowerShell from the Veeam Backup & Replication console, the cmdlet is called automatically and connects to the server to which the console is currently connected.
Note |
|
Only local and domain user accounts can be used for authentication. User accounts with SAML authentication are not supported. |
Within one PowerShell session, you can connect to one Veeam server. To connect to another Veeam server, you need to close the current session.
Run the Disconnect-VBRServerEnds current session with a Veeam backup server. cmdlet to stop session with the current Veeam server.
Run the Get-VBRServerSessionReturns current session with a Veeam backup server. cmdlet to get information about the current session.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credential |
Specifies the credentials you want to use for authenticating with the Veeam server.
Note: When creating the
Accepts the |
|
True |
Named |
False |
|
ForceAcceptTlsCertificate |
Defines that the cmdlet will accept the backup server TLS certificate. |
|
False |
Named |
False |
|
Password |
Specifies the password you want to use for authenticating with the Veeam server. |
|
True |
Named |
False |
|
Port |
Specifies the port for connection.
Default: |
|
False |
Named |
False |
|
Server |
Specifies the Veeam server to which you want to connect.
Default:
Accepts the |
|
False |
Named |
False |
|
Timeout |
Specifies timeout in seconds for waiting for a blocked session.
Default: |
|
False |
Named |
False |
|
User |
Specifies the user name you want to use for authenticating with the remote server. Note: You must specify the user name in the DOMAIN\Username or UPN format. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Connecting to Veeam Backup Server as Current User
|
This command connects to the
|
Example 2. Connecting to Veeam Backup Server with User/Password Authentication
|
This command connects to the
|
Example 3. Connecting to Veeam Backup Server Using Credentials Prompt
|
This example shows how to connect to the
Perform the following steps:
|
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRLocalhostReturns the local server on which the backup infrastructure is installed.Get-VBRCredentialsReturns credentials records.Get-Credential