PowerShell script exchange
Post Reply
EPSMAL
Lurker
Posts: 0
Liked: never
Joined: Aug 07, 2012 6:37 am
Full Name: EPSMAL
Contact:

Daily job list

Post by EPSMAL » May 16, 2013 9:34 am

I have another question :

I would like to have the list of all the jobs launched since 1 days

Thanks

best regards

veremin
Product Manager
Posts: 16710
Liked: 1396 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Daily job list

Post by veremin » May 16, 2013 10:12 am

Assuming I’ve understood you correctly, the following script might answer your requirements:

Code: Select all

Asnp VeeamPSSnapin
function Set-Culture([System.Globalization.CultureInfo] $culture)
{
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
    [System.Threading.Thread]::CurrentThread.CurrentCulture = $culture
}
Set-Culture "en-US"
Get-VBRJob | ?{($_.ScheduleOptions.NextRun | Get-Date -Format "dd.MM.yyyy") -eq (Get-Date -Format "dd.MM.yyyy")} | Sort-Object {$_.ScheduleOptions.NextRun} | Select {$_.ScheduleOptions.NextRun}, name  
This script outputs in chronological order the name of the jobs that will be executed during the current day and also the time when these jobs will be run.

Furthermore, this output can be easily redirected to text-file, etc.

Hope this helps.
Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests