PowerShell script exchange
Post Reply
pizzim13
Enthusiast
Posts: 94
Liked: 6 times
Joined: Apr 21, 2011 7:37 pm
Contact:

Current operation of a backup job

Post by pizzim13 »

In Veeam 5 I was able to retrieve the current backup operation of a running job by

Code: Select all

(Get-VBRJob | Where-Object {$_.getlaststate() -eq "Working"}).findlastsession().info.operation
This would return "Processing object 'VM-Test-01'", for example. In Veeam 6, what looks like the same propery

Code: Select all

(Get-VBRJob | Where-Object {$_.getlaststate() -eq "Working"}).findlastsession().operation
doesn't return anything.
Is this information available another way?
Sethbartlett
Veteran
Posts: 282
Liked: 26 times
Joined: Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett
Contact:

Re: Current operation of a backup job

Post by Sethbartlett » 2 people like this post

If you do:

Code: Select all

(Get-VBRJob | ?{$_.GetLastState() -eq "Working"}).FindLastSession().Logger.GetLog().UpdatedRecords
You will get some XML data about what is going on.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
pizzim13
Enthusiast
Posts: 94
Liked: 6 times
Joined: Apr 21, 2011 7:37 pm
Contact:

Re: Current operation of a backup job

Post by pizzim13 »

Just what I was looking for. Thanks Seth.
Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 13 guests