PowerShell script exchange
Post Reply
efd121
Enthusiast
Posts: 46
Liked: 2 times
Joined: Aug 07, 2015 8:45 pm
Full Name: David Engler
Contact:

GetStorages()

Post by efd121 »

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
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: GetStorages()

Post by veremin »

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.
efd121
Enthusiast
Posts: 46
Liked: 2 times
Joined: Aug 07, 2015 8:45 pm
Full Name: David Engler
Contact:

Re: GetStorages()

Post by efd121 »

Thanks for the update, the GetAllStorages() is working for me
Dave
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: GetStorages()

Post by veremin »

You're welcome. Should other questions arise, don't hesitate to let me know. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests