List of Retention Policy per Job

PowerShell script exchange

List of Retention Policy per Job

Veeam Logoby FluxCapMalfunction » Thu Apr 24, 2014 3:28 pm

Hello,

I was wondering if there is a powershell/built in feature in Veeam where i can retrieve the retention policy for each jobs. We have number of jobs setup and it would be quite a manual process to go through the list one by one.

Thank you.
FluxCapMalfunction
Novice
 
Posts: 3
Liked: never
Joined: Fri Apr 11, 2014 4:49 pm
Full Name: FluxCapMalfunction

Re: List of Retention Policy per Job

Veeam Logoby v.Eremin » Thu Apr 24, 2014 7:24 pm

I don't have access to the PS console at the moment. But if my memory serves me well, the retention settings are located under "Options.RootNode.retaincycles".

Code: Select all
$Job = Get-VBRJob -name "Name of your Job"
$Job.Options.RootNode.retaincycles


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 11 guests