PowerShell script exchange
efd121
Enthusiast
Posts: 67 Liked: 6 times
Joined: Aug 07, 2015 8:45 pm
Full Name: David Engler
Contact:
Post
by efd121 » Mar 31, 2016 11:19 am
this post
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: 20400 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Mar 31, 2016 1:03 pm
this post
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: 67 Liked: 6 times
Joined: Aug 07, 2015 8:45 pm
Full Name: David Engler
Contact:
Post
by efd121 » Mar 31, 2016 1:20 pm
this post
Thanks for the update, the GetAllStorages() is working for me
Dave
veremin
Product Manager
Posts: 20400 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Mar 31, 2016 1:58 pm
this post
You're welcome. Should other questions arise, don't hesitate to let me know. Thanks.
Users browsing this forum: No registered users and 6 guests