Hello David,
I have tried the Get-VBRSession cmdlet.
If I run the following cmdlet it returns the entire history of the offload jobs, which I don't need.When I want to get the running jobs I need to define the name of the job according to the cmdlet explanation :The name of the offload jobs we have is "SOBR Offload" or "SOBR01 Offload".
![Image]()
When using this cmdlet I get the following:
-----------
PS C:\Users\admin> get-vbrsession -job "SOBR01 Offload" -state working
Get-VBRSession : Cannot bind parameter 'Job'. Cannot convert the "SOBR01 Offload" value of type "System.String" to type "Veeam.Backup.PowerShell.Infos.VBRJob".
At line:1 char:21
+ get-vbrsession -job "SOBR01 Offload" -state working
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-VBRSession], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Cmdlets.GetVBRSession
PS C:\Users\admin>
PS C:\Users\admin> Get-VBRSession -job "SOBR01 Offload"
Get-VBRSession : Cannot bind parameter 'Job'. Cannot convert the "SOBR01 Offload" value of type "System.String" to type "Veeam.Backup.PowerShell.Infos.VBRJob".
At line:1 char:21
+ Get-VBRSession -job "SOBR01 Offload"
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-VBRSession], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Cmdlets.GetVBRSession
------------
If I try to retrieve the name using get-vbrjob as seen in the docs I get the following
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
----------
PS C:\Windows\system32> $job = Get-VBRJob -Name "SOBR Offload"
$session = Get-VBRSession -Job $job
Get-VBRSession : Cannot validate argument on parameter 'Job'. The argument is null. Provide a valid value for the argument, and then try running the command again
.
At line:2 char:32
+ $session = Get-VBRSession -Job $job
+ ~~~~
+ CategoryInfo : InvalidData: (:) [Get-VBRSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Veeam.Backup.PowerShell.Cmdlets.GetVBRSession
------------------
So am I doing something wrong with the job name retrieval here or Is there another way to get the -state parameter without defining a job name?
I have tried the Get-VBRSession cmdlet.
If I run the following cmdlet it returns the entire history of the offload jobs, which I don't need.
Code:
Get-VBRSession -type ArchiveBackupCode:
Get-VBRSession [b]-Job <VBRJob> [-State [/b]{Stopped | Starting | Stopping | [b]Working [/b]| Pausing | Resuming | WaitingTape | Idle | Postprocessing | WaitingRepository | Pendin g | WaitingSlot | ActionRequired}] [<CommonParameters>]
When using this cmdlet I get the following:
-----------
PS C:\Users\admin> get-vbrsession -job "SOBR01 Offload" -state working
Get-VBRSession : Cannot bind parameter 'Job'. Cannot convert the "SOBR01 Offload" value of type "System.String" to type "Veeam.Backup.PowerShell.Infos.VBRJob".
At line:1 char:21
+ get-vbrsession -job "SOBR01 Offload" -state working
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-VBRSession], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Cmdlets.GetVBRSession
PS C:\Users\admin>
PS C:\Users\admin> Get-VBRSession -job "SOBR01 Offload"
Get-VBRSession : Cannot bind parameter 'Job'. Cannot convert the "SOBR01 Offload" value of type "System.String" to type "Veeam.Backup.PowerShell.Infos.VBRJob".
At line:1 char:21
+ Get-VBRSession -job "SOBR01 Offload"
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-VBRSession], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Cmdlets.GetVBRSession
------------
If I try to retrieve the name using get-vbrjob as seen in the docs I get the following
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
----------
PS C:\Windows\system32> $job = Get-VBRJob -Name "SOBR Offload"
$session = Get-VBRSession -Job $job
Get-VBRSession : Cannot validate argument on parameter 'Job'. The argument is null. Provide a valid value for the argument, and then try running the command again
.
At line:2 char:32
+ $session = Get-VBRSession -Job $job
+ ~~~~
+ CategoryInfo : InvalidData: (:) [Get-VBRSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Veeam.Backup.PowerShell.Cmdlets.GetVBRSession
------------------
So am I doing something wrong with the job name retrieval here or Is there another way to get the -state parameter without defining a job name?
Statistics: Posted by JeroenConfirmed — May 19, 2025 9:31 am






