PowerShell script exchange
Post Reply
dutchcs
Lurker
Posts: 1
Liked: never
Joined: May 15, 2025 2:37 pm
Full Name: Chad Stoutjesdyk
Contact:

Veeam BR Powershell Toolkit Inquiry - Feature/Cmdlet request

Post by dutchcs »

I'm a recent fan of scripting in Veeam with the PowerShell toolkit. I'm running version 12.3.2 and recently began to automate the job creation process that I undergo in our environment.

I've created a script that successfully automates the manual creation of disk jobs using the Copy-VBRJob cmdlet.

I'd like to do the same to automate the creation of tape jobs yet to my dismay, I've discovered there is no equivalent cmdlet that performs the same function for tape jobs as "Copy-VBRJob" does for disk jobs. I was expecting to find a cmdlet named something like, "Copy-VBRTapeJob", but it's nowhere to be found. :(

This is my first time posting on this forum. Is this an appropriate place to post a request like this?

Sincerely, a fellow scripting enthusiast.
david.domask
Veeam Software
Posts: 3048
Liked: 704 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Veeam BR Powershell Toolkit Inquiry - Feature/Cmdlet request

Post by david.domask »

Hi dutchcs, welcome to the forums.

You can pass VBRBackupToTapeJob objects returned by Get-VBRTapeJob to Copy-VBRJob :)

You won't be able to do any edits of the copied job besides the -Name and -Description parameter, but get the Id of the object returned by Copy-VBRJob and use it to filter the results of Get-VBRTapeJob. Example:

Code: Select all

$tJob = Get-VBRTapeJob -Name "Example"
$result = Copy-VBRJob -Job $tJob -Name "Copy Example"
$newTJob = Get-VBRTapeJob | Where-Object {$.id -eq $result.id}
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests