Get-VBRSession
Short Description
Returns job sessions.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Job (Default)Get-VBRSession -Job <VBRJob> [-Last] [<CommonParameters>]
-
IdGet-VBRSession -Id <Guid[]> [<CommonParameters>]
-
SessionGet-VBRSession -Session <VBRSession> [<CommonParameters>]
-
ResultGet-VBRSession -Job <VBRJob> [-Result <VBRSessionResult>] [<CommonParameters>]
-
StateGet-VBRSession -Job <VBRJob> [-State <VBRSessionState>] [<CommonParameters>]
-
TypeGet-VBRSession -Type <EDbJobType> [<CommonParameters>]
Detailed Description
This cmdlet returns sessions for a selected job.
Important |
|
To get tape backup job sessions, run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Id |
Specifies the ID of the session. The cmdlet will return the session with this ID. |
|
True |
Named |
False |
|
Job |
Specifies the job for which you want to get sessions that have been run. Note: This parameter does not accept VM copy and file copy job objects.
Accepts the |
True |
Named |
True (ByPropertyName) |
|
|
Last |
Defines that the command returns the last session of the specified job. |
|
False |
Named |
False |
|
Result |
Specifies the session result. The cmdlet will return sessions with the specified result:
|
|
False |
Named |
False |
|
Session |
Specifies the job session for which you want to get an updated state.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
State |
Specifies the session state. The cmdlet will return sessions with the specified state. |
|
False |
Named |
False |
|
Type |
Specifies the type of the session. The cmdlet will return the session of this type. |
|
True |
Named |
True (ByPropertyName) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Example 1. Getting Sessions for Specific Job [Using Variable]
|
This example shows how to get the session for the specified job.
Perform the following steps:
|
Example 2. Getting Sessions for VM Copy and File Copy Type of Jobs
|
This command shows how to get the sessions for the specified type of jobs.
|
Related Commands
Get-VBRJobReturns existing jobs.