Get-VBOJobSession
Short Description
Returns backup and backup copy job sessions.
Syntax
This cmdlet provides the following parameter sets:
-
AllParametersSet (Default)Get-VBOJobSession [-JobType <VBOJobSessionType>] [-Status <VBOJobStatus>] [-Last] [<CommonParameters>]
-
SingleParametersSetGet-VBOJobSession [-Job <IVBOJobWithId>] [-Status <VBOJobStatus>] [-Last] [<CommonParameters>]
Detailed Description
This cmdlet returns job sessions stored in Veeam Backup for Microsoft 365.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Job |
Specifies a job. The cmdlet will return job sessions for this backup or backup copy job. IVBOJobWithId
Accepts the
To get this object, run the |
|
False |
Named |
True (ByValue) |
|
JobType |
Specifies a job type. The cmdlet will return job sessions for the jobs of the specified type:
|
|
False |
Named |
False |
|
Last |
Defines that the cmdlet will return the latest job session.
If the
If the Default: False |
|
False |
Named |
False |
|
Status |
Specifies a job status. The cmdlet will return job sessions for the jobs with the specified status:
|
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBOJobSession object that contains details about job sessions.
Examples
Example 1: Getting All Job Sessions
|
This command returns a list of all job sessions.
|
Example 2: Getting Job Sessions for Backup Jobs with Success Status
|
This command returns all job sessions for backup jobs with the Success status.
|
Example 3: Getting Latest Job Session
|
This command returns the latest job session stored in Veeam Backup for Microsoft 365.
|
Example 4: Getting Latest Job Session for Backup Jobs with Failed Status
|
This command returns the latest job session for backup jobs with the
|
Example 5: Getting Statistics for Latest Job Session
|
This example shows how to get statistics for the latest job session.
Perform the following steps:
|
Related Commands
Get-VBOJobReturns backup jobs.Get-VBOCopyJobReturns backup copy jobs.