Powershell - Get running VBR jobs

PowerShell script exchange

Powershell - Get running VBR jobs

Veeam Logoby AdrianHinton » Fri May 02, 2014 1:16 am

Hi,

What would be the best way to get all/any currently running VBR jobs using powershell?
AdrianHinton
Enthusiast
 
Posts: 71
Liked: 5 times
Joined: Mon Apr 07, 2014 10:00 am
Full Name: Adrian Hinton

Re: Powershell - Get running VBR jobs

Veeam Logoby AdrianHinton » Fri May 02, 2014 5:40 am 1 person likes this post

And the answer is...

Get-VBRBackupSession | Select Name,State
AdrianHinton
Enthusiast
 
Posts: 71
Liked: 5 times
Joined: Mon Apr 07, 2014 10:00 am
Full Name: Adrian Hinton

Re: Powershell - Get running VBR jobs

Veeam Logoby Vitaliy S. » Fri May 02, 2014 2:03 pm 1 person likes this post

Glad that you've figured it out already ;)
Vitaliy S.
Veeam Software
 
Posts: 19545
Liked: 1099 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Powershell - Get running VBR jobs

Veeam Logoby v.Eremin » Sun May 04, 2014 7:38 pm

Also, backup job has a dynamic method called .GetLastState() that can be used in your case. Just write something like the following:

Code: Select all
Get-VBRJob | where {$_.GetLastState() -eq "Running"}


Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: Exabot [Bot] and 4 guests