GetStorages()

PowerShell script exchange

GetStorages()

Veeam Logoby efd121 » Thu Mar 31, 2016 11:19 am

I had a script that was collecting job statistics using GetStorages() but its now failing stating that method is not available. Does anyone know how I can job statistics?

Code: Select all
$stats = ($Job.GetStorages() | Sort-Object CreationTime -Descending | Select-Object -ExpandProperty stats -Property Info)


Dave
efd121
Enthusiast
 
Posts: 25
Liked: never
Joined: Fri Aug 07, 2015 8:45 pm
Full Name: David Engler

Re: GetStorages()

Veeam Logoby v.Eremin » Thu Mar 31, 2016 1:03 pm

As far as I remember GetStorages() method used to work on backup level instead of on job one. I version 9 you can use its analogue named Getallstorages(). Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: GetStorages()

Veeam Logoby efd121 » Thu Mar 31, 2016 1:20 pm

Thanks for the update, the GetAllStorages() is working for me
Dave
efd121
Enthusiast
 
Posts: 25
Liked: never
Joined: Fri Aug 07, 2015 8:45 pm
Full Name: David Engler

Re: GetStorages()

Veeam Logoby v.Eremin » Thu Mar 31, 2016 1:58 pm

You're welcome. Should other questions arise, don't hesitate to let me know. 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: No registered users and 4 guests