Getting detailed schedule for jobs

PowerShell script exchange

Getting detailed schedule for jobs

Veeam Logoby marius roma » Thu May 28, 2015 2:58 pm

I need to get the schedule for each job in a format easy ro be read, for example:

--> At 20:00 PM every Monday, Friday and Saturday
or
--> At 5:30 AM Everyday
or
--> After job "Other_backup_job"

How can I get such information via PowerShell and format it in a readable way?
Is there any saplne I can start from?
Regards
marius roma
Expert
 
Posts: 317
Liked: 3 times
Joined: Wed Feb 01, 2012 12:04 pm
Full Name: Mario

Re: Getting detailed schedule for jobs

Veeam Logoby v.Eremin » Fri May 29, 2015 10:03 am

As a first step I'd recommend taking a look at this script that I've created before; might be helpful. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Getting detailed schedule for jobs

Veeam Logoby marius roma » Fri May 29, 2015 10:49 am

Thank you, but...

Information
You are not authorised to read this forum.

Regards
Marius
marius roma
Expert
 
Posts: 317
Liked: 3 times
Joined: Wed Feb 01, 2012 12:04 pm
Full Name: Mario

Re: Getting detailed schedule for jobs

Veeam Logoby v.Eremin » Fri May 29, 2015 11:58 am

Didn't realize that I'd posted the script on our internal forum. That's it:
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 


Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Getting detailed schedule for jobs

Veeam Logoby marius roma » Fri May 29, 2015 12:08 pm

Many thanks!
marius
marius roma
Expert
 
Posts: 317
Liked: 3 times
Joined: Wed Feb 01, 2012 12:04 pm
Full Name: Mario


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests