Daily job list

PowerShell script exchange

Daily job list

Veeam Logoby EPSMAL » Thu 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
EPSMAL
Lurker
 
Posts: 0
Liked: never
Joined: Tue Aug 07, 2012 6:37 am
Full Name: EPSMAL

Re: Daily job list

Veeam Logoby v.Eremin » Thu 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.
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